Hi tjsnod!
You already were on the right way! Crontab is indeed the solution to
your problem:
The best way to do it is if you create a file with the following
content:
0,15,30,45 * * * * /absolut_path/command
then do a crontab filename to activate the new crontab.
If you want to start your command every 15 minutes without having to
rely on cron, you still have multiple options. One would be the
following script (just cut&paste it into a file and start at any
time):
#!/bin/sh
while true
do
command
sleep 15m
done
I hope this helped! Should you require any further information, please
feel free to ask for clarification! If there are any problems with the
script or crontab, please tell me what kind of UNIX you are working
on.
Thank you for your question,
voyager-ga |
Request for Answer Clarification by
tjsnod-ga
on
26 Sep 2002 13:35 PDT
actually, can i request a quick clarification on crontab? when you
say create a file, then 'do a crontab filename to activate the new
crontab', I have no idea what the latter part means :)
when I do crontab -e, it creates my user account's crontab file, which
I can then save. but how do i activate it exactly? and also, once
it's going (since it's on a perpetual loop), how do I stop it?
thanks!
|