Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crontab attempt

Status
Not open for further replies.

cleanair4me46

Technical User
Feb 3, 2009
41
US
I cant seem to create a cron job in my Solaris 10 server.

I tried crontab -e and it reponds with a 0 where I can add anything to it:
Code:
crontab -e
0

Please advise why I cant create a cron job in my cron file?
 
If you have no EDITOR environment variable set, the default editor /usr/bin/ed is used. As you can see it has a very user-friendly interface. :)

You could use the following commands to add a cron job:

Code:
a
00 08 * * * /some/job > /some/logfile 2>&1
.
w
q

But I presume you would prefer to export EDITOR=vi (or your preferred editor) before running crontab -e. Perhaps do this in your .profile.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top