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.
Old posts that have not been replied to for several years.
-
P
Pete-
Post
by Pete- »
Hi
Can anyone help with my little porblem. I want to automaticaly run this command line every hour?
./ircstats eggdrop.log ircstats.conf
thanks
-
ppslim
- Revered One
- Posts: 3914
- Joined: Sun Sep 23, 2001 8:00 pm
- Location: Liverpool, England
Post
by ppslim »
Why use Tcl, when cron is better.
Code: Select all
0,30 * * * * /location/of/file/to/execute
-
P
Pete-
Post
by Pete- »
ok I can crontab
This will run the script every 10 minutes 0,10,20,30,40,50 * * * * /home/peter/ircstats/stats
I need to create a shell script file call stats and place it in /home/peter/ircstats
stats file
#!/bin/sh
echo "Starting stats processing"
./ircstats eggdrop.log ircstats.cfg
echo "End prosessing
Then chrom u+x stats
Were have I gone wrong as I can't get it to work ?
thanks
-
caesar
- Mint Rubber
- Posts: 3778
- Joined: Sun Oct 14, 2001 8:00 pm
- Location: Mint Factory
Post
by caesar »
Try put the full path of the file, like this: /home/peter/ircstats/ircstats eggdrop.log ircstats.cfg. Not shure of this anyway, I'm just guessing.

Once the game is over, the king and the pawn go back in the same box.
-
ppslim
- Revered One
- Posts: 3914
- Joined: Sun Sep 23, 2001 8:00 pm
- Location: Liverpool, England
Post
by ppslim »
I would think you need to use the "cd" command to change directories within your script.
-
P
Pete-
Post
by Pete- »
great that worked
thanks for the help.
-
caesar
- Mint Rubber
- Posts: 3778
- Joined: Sun Oct 14, 2001 8:00 pm
- Location: Mint Factory
Post
by caesar »
how exactly did it worked?

Once the game is over, the king and the pawn go back in the same box.