Main Menu Linux Forum Android Forum Chrome OS Forum Search LQ
Crontab (CRON TABle) is a file which contains the schedule of cron entries to be run and at specified times. Even when it's been years from the day you wrote this, it's being useful for me now... Hopefully, the default editor will change from ed to vi in the next main Solaris release and has yet done so with OpenSolaris. The crontab itself works like this MIN = Minute 0-60 HOUR = Hour [24-hour clock] 0-23 MDAY = Day of Month 1-31 MON = Month 1-12 OR jan,feb,mar,apr ... his comment is here
The number you see is the byte size of the file. Caution - If you accidentally type the crontab command with no option, press the interrupt character for your editor. Review of my T-shirt design How to remove Date from output? Can Mirror Image still work while being grappled? http://www.unix.com/unix-for-dummies-questions-and-answers/22527-cant-edit-crontab.html
If you instead saved changes and exited the file, the existing crontab file would be overwritten with an empty file. Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving... Blogs Recent Entries Best Entries Best Blogs Blog List Search Blogs Home Forums HCL Reviews Tutorials Articles Register Search Search Forums Advanced Search Search Tags Search LQ Wiki Search Tutorials/Articles Search Not the answer you're looking for?
Why did my credit score plummet in a week? Let's speed that file sentence searching program What's the difference between ls and la? Crontab Script Crontab Refresh? Near the end you should find some kind of error indicating what is wrong. (Often it is an open of a file on which you don't have the needed permissions.) share|improve
Identify shape of the polygons: elongation, roundness, etc Two brothers, two watches Censure due to holding an Army commission and a seat in Congress What is a real-world metaphor for irrational A 'for' loop that appears to be practically infinite What's the difference between ls and la? Thankyou all very much Top White Papers and Webcasts Popular The Difference Between Microsoft Azure & Amazon AWS Related Return Path Email Metrics Troubleshooter Blueprint for Delivering IT-as-a-Service - 9 Steps asked 3 years ago viewed 1011 times active 3 years ago Blog Stack Overflow Gives Back 2016 Developers, Webmasters, and Ninjas: What’s in a Job Title?
Crazy uh? http://brrian.net/to-edit/unable-to-edit-crontab-file.html I want to become a living god! Now when strace starts the binary is is not possible to set the uid and you will not be able to access your file. - Seems like strace will not help It is, however, running as root. –Keith Wolters Jan 18 '13 at 21:19 I don't know, but personally I prefer crontab
Will I need to restart the server after saving the cron job in the crontab file before it will start working? to trigger a job every 15 minutes only on monday, you do it like so */15 * * * mon /home/me/yourscript.sh and YES it's very important that you put your cronjob Another machine: Quote: $ crontab -e 69 What could be the problem? http://brrian.net/to-edit/unable-to-edit-crontab.html Create a new crontab file, or edit an existing file. # crontab -e [username]where username specifies the name of the user's account for which you want to create or edit a
Prasanna S N Join this group Popular White Paper On This Topic Three Ways Big Data is changing ITSM 11Replies Best Answer 0 Mark this reply as the best answer?(Choose carefully, For example, the following output shows that crontab files exist for users jones and smith. $ ls -l /var/spool/cron/crontabsVerify the contents of user's crontab file by using the crontab -l command This is not a good practice, try this only as a last resort.
When should streams be preferred over traditional loops for best performance? rweaver View Public Profile View LQ Blog View Review Entries View HCL Entries Visit rweaver's homepage! Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers Search Forums Show Threads Show Posts Tag Search Advanced Search Unanswered log into a logfile to see if it really works.
Any ideas how can I edit this file? Minimum font size for mobile view Can I jump start one car with two other cars in parallel? hope it helps. http://brrian.net/to-edit/unable-to-edit-crontab-solaris.html What did SuSE change?
cron share|improve this question edited Apr 16 '15 at 6:49 Faizan Akram Dar 2,5791027 asked Apr 16 '15 at 4:16 timbram 2703513 add a comment| 2 Answers 2 active oldest votes This character allows you to quit without saving changes. August 9, 2012 at 4:20 PM Thanks for the post - noticed that:export EDITOR=vigave an errorEDITOR=vi: is not an identifierso:EDITOR=viexport EDITORalbeit didn't get as far as adding it to .profile Marko If running ksh please do the following, or set it up in your .kshrc: export EDITOR=vi If sh, then EDITOR=vi;export EDITOR Dale Top Best Answer 0 Mark this reply as the
Output the sign Did Donald Trump say that "global warming was a hoax invented by the Chinese"? chandra sekhar karuturi replied Oct 30, 2007 have you tried this, #EDITOR=vi #export EDITOR #crontab -e then you will get the file to be edited , edit it and save it Will I need to restart the server after saving the cron job in the crontab file before it will start working? EDIT to be for example vi Top Best Answer 1 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving...
Related 22Why did my crontab not trigger?2/etc/crontab edited via copy and paste, how to revert back?2Cannot edit crontab as non root user0Using nano to edit a crontab0broken cron job after editing I do not have root privs on the server, so I do not start crond myself.