you can use "crontab -e" which gives you a copy of the current crontab file. If you use "crontab -e username" the user's crontab file can be edited (supposing you have the rights to edit another user's crontab.
You can do something like this :-
crontab -l > /tmp/origcron
echo "00 10 * * /usr/bin/ls -l > /tmp/list.log 2>&1 " >> /tmp/origcron
crontab /tmp/origcron
(just an example ls -l, you can call your program)
If you require running different jobs when required at different times , you can us the at command and specify when to run the job e.g.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.