Go Back   Linux Forums by TotalPenguin! Get linux Help! > Unix > Solaris

Solaris Discussion and Questions about Sun Solaris

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-22-2007, 02:11 PM
ptt3
Guest
 
Posts: n/a
Default Adding a cronjob

How do I add a cronjob to Solaris?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 10-23-2007, 01:02 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 507
Jordan is on a distinguished road
Default

The same way as in Linux

Code:
crontab -e
You will be entered into a file with your default editor.
Reply With Quote
  #3 (permalink)  
Old 04-09-2008, 04:47 PM
MHJ MHJ is offline
Junior Member
 
Join Date: Apr 2008
Posts: 15
MHJ is on a distinguished road
Default

I am not familiar with what this refers to. What exactly is a crontab?
Reply With Quote
  #4 (permalink)  
Old 05-19-2008, 07:44 PM
Member
 
Join Date: Feb 2008
Posts: 32
Jame is on a distinguished road
Default

Cron is a scheduler like Windows Scheduler. It will execute events at the given times you input.
Reply With Quote
  #5 (permalink)  
Old 06-24-2008, 09:19 PM
Member
 
Join Date: Jun 2008
Posts: 54
LissaValerian is on a distinguished road
Post

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. :-)
Reply With Quote

Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a basket tool to OpenOffice.org kernel Linux News 0 09-21-2007 12:46 AM


All times are GMT. The time now is 12:31 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.