![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with cron job | solne | SUN Solaris | 7 | 01-18-2008 05:57 PM |
| cron problem! | blowtorch | UNIX for Advanced & Expert Users | 4 | 03-07-2006 10:12 PM |
| Problem with cron | jhansrod | AIX | 2 | 11-25-2005 01:30 PM |
| cron problem | VPN | UNIX for Dummies Questions & Answers | 2 | 04-16-2004 03:27 AM |
| Cron Problem | Raiden | Shell Programming and Scripting | 4 | 11-16-2003 04:00 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
cron job problem
I am trying to setup cronjob and once I start to save it is not working. This is what I am getting after I executed crontab -e, I am not even getting the privious entry and I am running from root.
crontab -e 421 10 3 * * * /usr/sbin/logadm ? :wq ? Why is it not saving? Any input is appreciated? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Type "crontab -l >crontab"
That should give you your current crontab. Edit the file called "crontab" Then do "crontab crontab" to put it back And repeat "crontab -l" to confirm it has been set. |
|
#3
|
||||
|
||||
|
I agree with porter's suggestion's on how to use the crontab command safely. But to answer the question, you are not typing ed commands, so ed does not understand your input. That is why you get the question mark. It tells you that you made an error. You never asked ed to do anything, including display the current contents of the file. It is unforunate that crontab and other command default to running an antique editor. But you can control the editor which is used by setting your EDITOR environment variable. You really should set it to some editor you know so you don't find yourself in an alien editor.
|
|
#4
|
|||
|
|||
|
thank you, how to provide the edit command? I want to use vi as the default. Thanks in advance.
|
|
#5
|
|||
|
|||
|
Quote:
Code:
EDITOR=vi export EDITOR |
|||
| Google The UNIX and Linux Forums |