This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

crontab question

Old posts that have not been replied to for several years.
Locked
User avatar
dotslasher
Halfop
Posts: 62
Joined: Sun Aug 10, 2003 8:10 pm

crontab question

Post by dotslasher »

hi i added the following lines to my crontab

Code: Select all

0,10,20,30,40,50 * * * * /home/joshua/RedRaven/RedRaven.botchk >/dev/null 2>&1
0,10,20,30,40,50 * * * * /home/joshua/BlueRaven/BlueRaven.botchk >/dev/null 2>&1
0,10,20,30,40,50 * * * * /home/joshua/Serenac/Serenac.botchk >/dev/null 2>&1
0,10,20,30,40,50 * * * * /home/joshua/BlueRaven/stats >/dev/null 2>&1
0,10,20,30,40,50 * * * * /home/joshua/pisg-0.48/pisg >/dev/null 2>&1
but apearantly that isnt working.

the main thing i want to get to work is the "stats" and "pisg"

i made the following scripty called "stats" it connects to the ftp logs in drops the files and quits

Code: Select all

#!/bin/sh
cat <<_EOF_ | ftp -n
open ftp.MYFTP.net
user MYLOGIN MYPASSWORD
put /home/joshua/pisg-0.48/utgames.html utgames.html
put /home/joshua/pisg-0.48/bot.html bot.html
put /home/joshua/pisg-0.48/raven.html raven.html
put /home/joshua/pisg-0.48/floridachat.html floridachat.html
bye
_EOF_
the script worx when i execute it manually: --> ./stats but it doesnt run at certain times using the contrab same problem with the pisg thing.
does anyone have any suggestions?
User avatar
Moose
Voice
Posts: 37
Joined: Mon Aug 18, 2003 2:54 am
Location: Northamption, UK
Contact:

Post by Moose »

sorry that sort of stuff is too hard for me.

sorry :-?
User avatar
dotslasher
Halfop
Posts: 62
Joined: Sun Aug 10, 2003 8:10 pm

Post by dotslasher »

lol ... o...k :p

tnx anywayz :D
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

If it is failing, you need to ask your shell provider if they are even running the cron deamon.

Otherwise, remove the " >/dev/null 2>&1" off the end of each line. The shell should e-mail you if it fails.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Hi,

I have used pisg for some time now. I also use a private box that is setup perfectly for what I need.

This is my crontab entry: 0,30 * * * * ~/public_html/stats/pisgchek >/dev/null 2>&1

This is the text within pisgchek:

#!/bin/sh

statsbin="./pisg"
statpath="/home/wombles/public_html/stats"

cd $statpath

$statsbin

The above crontab entry runs pisg every 30 minutes. Any file run by crontab should have the correct permissions set: chmod u+x
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Locked