How do I add a cronjob to Solaris?
Adding a cronjob
Started by
Guest_ptt3_*
, Oct 22 2007 05:11 AM
4 replies to this topic
#1
Guest_ptt3_*
Posted 22 October 2007 - 05:11 AM
Guest_ptt3_*
|
|
|
#2
Guest_Jordan_*
Posted 23 October 2007 - 04:02 AM
Guest_Jordan_*
The same way as in Linux
You will be entered into a file with your default editor.
crontab -e
You will be entered into a file with your default editor.
#3
Posted 09 April 2008 - 07:47 AM
I am not familiar with what this refers to. What exactly is a crontab?
#4
Posted 19 May 2008 - 10:44 AM
Cron is a scheduler like Windows Scheduler. It will execute events at the given times you input.
#5
Posted 24 June 2008 - 12:19 PM
Here is another way to edit the crontab file (not that theres anything wrong with the previous way!)
I like to write my crontabs out to a file, make a backup, edit the file, then write it back to the cron. I'm always careful of using crontab -e because if you do ^d in the middle of it, you wipe out the entire crontab. Yikes! And I've done that before.
So this is what I do:
crontab -l > crontab.username
# make a backup of the crontab
cp crontab.username crontab.username.MMDDYY##
vi crontab.username
# make my crontab edits
crontab crontab.username.out
# reads it back into the crontab.
Call that an abundance of caution. :-) Believe me, I've hosed my crontab on more than one occasion. And when you have crontabs that are like 3 pages long, that is NO fun.
backups are good. :-)
I like to write my crontabs out to a file, make a backup, edit the file, then write it back to the cron. I'm always careful of using crontab -e because if you do ^d in the middle of it, you wipe out the entire crontab. Yikes! And I've done that before.
So this is what I do:
crontab -l > crontab.username
# make a backup of the crontab
cp crontab.username crontab.username.MMDDYY##
vi crontab.username
# make my crontab edits
crontab crontab.username.out
# reads it back into the crontab.
Call that an abundance of caution. :-) Believe me, I've hosed my crontab on more than one occasion. And when you have crontabs that are like 3 pages long, that is NO fun.
backups are good. :-)


Sign In
Create Account

Back to top










