I am accessing CRON via telnet and want to set up some jobs. I have typed crontab -e to edit my cronfile but I can't seem to enter anything when I type on my keyboard. All I have is a flashing cursor at the top with ~ on the start of each line.
How can I enter the jobs and save this file? Thanks for any help
do a crontab -l
copy and paste all content to a new file
then using vi or any other editor, edit the new file to add jobs.
save changes and then run this command to submit this file to your crontab
It sounds like the OP is getting dropped into vi, and doesn't know what to do from there.
Search for a vi reference or tutorial - that'll help.
And there nothing wrong with using the crontab command, as long as you're aware of what you're doing. You could just as easily replace the entire crontab incorrectly using "crontab filename" as you could making an error in vi / ed / whatever and saving before you exit.
Okay, maybe it is not absolutely foolproof, but it is somewhat foolproof. In a corporate setting, it is very good practice to use this methodology. In this era of CYA, cover your A**, anything to help prevent problems is desirable.