|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
cron
ok im trying to get cron to execute something every 10 minutes, inb the /etc/crontab file i added
01/30 * * * * tuxtime username pwd compid (the tuxtime username pwd compID is the command to lauch an update of my uptime, So i done this and it doesnt work, i've tried a few things but they dont seem to work, (including man cron which wasnt much help - and the redhat site) Anyone open to thoughts? |
|
|
|
|
|
#2 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
Does anyone no how to use cron at all?
|
|
|
|
|
|
#3 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
Okay dont worry people i figured it out
|
|
|
|
|
|
#4 |
|
Member (11 bit)
|
Can you share the answer?
__________________
"The number of UNIX installations has grown to 10, with more expected." -The Unix Programmer's Manual, 2nd edition, June 1972 |
|
|
|
|
|
#5 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
I found the best way was to write a shell script, such as
#!/bin/bash /command needed... and save it as a .sh file then using 'chmod +x shellscript.sh' to make the file executable, then in the crontab file (located in /etc) add the line */10 * * * * /usr/local/shellscript.sh the /10 denotes to run the file every ten minutes Vola :-) |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|