This is a discussion on Adding line in crontab from command line... within the comp.unix.solaris forums, part of the Solaris Operating System category; --> On 2008-04-10, Helmut Kreft <kreft@unfug.org> wrote: > crontab -l | (cat;echo "00 1 * * * /monitor_file_system") | crontab ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On 2008-04-10, Helmut Kreft <kreft@unfug.org> wrote: > crontab -l | (cat;echo "00 1 * * * /monitor_file_system") | crontab Yup but the cat process can be avoided: (crontab -l; echo "00 1 * * * /monitor_file_system") | crontab Andreas. |
| |||
| On Mon, 14 Apr 2008 22:27:16 +0200 (CEST), Andreas F. Borchert wrote: > On 2008-04-10, Helmut Kreft <kreft@unfug.org> wrote: >> crontab -l | (cat;echo "00 1 * * * /monitor_file_system") | crontab > > Yup but the cat process can be avoided: > > (crontab -l; echo "00 1 * * * /monitor_file_system") | crontab > Damn... useless use of cat. I have been caught. Helmut -- Almost everything in life is easier to get into than out of. (Agnes' Law) |
| |||
| Is there way to JUST append a new line to crontab by program, so that the other already running cornjobs will function without any interrupt? Thanks, Jagadeesh On Apr 15, 2:21 am, Helmut Kreft <kr...@unfug.org> wrote: > On Mon, 14 Apr 2008 22:27:16 +0200 (CEST), Andreas F. Borchert wrote: > > On 2008-04-10, Helmut Kreft <kr...@unfug.org> wrote: > >> crontab -l | (cat;echo "00 1 * * * /monitor_file_system") | crontab > > > Yup but the cat process can be avoided: > > > (crontab -l; echo "00 1 * * * /monitor_file_system") | crontab > > Damn... useless use of cat. I have been caught. > > Helmut > > -- > Almost everything in life is easier to get into than out of. > (Agnes' Law) |
| ||||
| Jaga.venu@gmail.com writes: > Is there way to JUST append a new line to crontab by program, so that > the other already running cornjobs will function without any > interrupt? - running cronjobs are not interrupted by changing the crontab. - You can add lines to Your /var/spool/cron/crontabs/<user> file with any programm, but You have to tell the cron-daemon, that the crontab has changed. This is done by the crontab command. -- 11. Gebot: Wenn Du eine Fahrradklingel hörst, dreh Dich um, reiße Mund, Nase und Augen auf, trete aber keinesfalls zur Seite. |