Ubuntu Cron
Number of replies: 5
Does anyone here run moodle on ubuntu?? The nano text editor that comes up when I try to run the crontab -e command is really confusing. Could someone tell me how to set this script up? Remember, I am command line impaired. Very slow instructions for idiots would be great for me. I have no clue how to do this.
Re: Ubuntu Cron
> I am command line impaired.
You sit in a powerful car and refuse to change gears! ;-(
Seriously, the power of Unix is in its command line. There are so many books and tutorials available, some even free. Get one and invest a couple of evenings, you won't regret it!
On a historical note, the command interface was designed over 3 decades ago. Microsoft wanted to make it "obsolete" by replacing it with their GUI MS Windows (also not own invention). Once that failed they wanted to reinvent CLI as their own child, code named Monad. Once a couple of fatal design errors were discovered making it in par with DOS they've taken that out.
Haven't heard much on that topic since then!
You sit in a powerful car and refuse to change gears! ;-(
Seriously, the power of Unix is in its command line. There are so many books and tutorials available, some even free. Get one and invest a couple of evenings, you won't regret it!
On a historical note, the command interface was designed over 3 decades ago. Microsoft wanted to make it "obsolete" by replacing it with their GUI MS Windows (also not own invention). Once that failed they wanted to reinvent CLI as their own child, code named Monad. Once a couple of fatal design errors were discovered making it in par with DOS they've taken that out.
Haven't heard much on that topic since then!
Re: Ubuntu Cron
thanks for the history...
I said "impaired"... I did not imply a lack of willingness. I have been using the command line for 2 months now. I just screw up at least twice for every one time I get it right. It doesn't help that all the cron tutorials I find online (including the moodle documentation) give me no support for this stupid editor ubuntu has. You're supposed to be able to paste this line of code, hit escape, and then type ":wq" or something. Escape doesn't even work on this editor.
I said "impaired"... I did not imply a lack of willingness. I have been using the command line for 2 months now. I just screw up at least twice for every one time I get it right. It doesn't help that all the cron tutorials I find online (including the moodle documentation) give me no support for this stupid editor ubuntu has. You're supposed to be able to paste this line of code, hit escape, and then type ":wq" or something. Escape doesn't even work on this editor.
Re: Ubuntu Cron
when the editor is open type in the appropriate cron line and then save and quit the editor. you should then get message saying the crontab has been written. wq is a vi editor command.
with nano or pico editors:
ctrl+o to save
ctrl+x to save and quit
Re: Ubuntu Cron
If you run crontab -e in a terminal window (and assuming this is true, as you are running Ubuntu), the just execute:
export EDITOR=gedit
crontab -e
and it should open up gedit and let you edit your crontab file. Should you want to use another editor, just replace gedit above with the name of the executable for that other editor.
Saludos. Iñaki.
export EDITOR=gedit
crontab -e
and it should open up gedit and let you edit your crontab file. Should you want to use another editor, just replace gedit above with the name of the executable for that other editor.
Saludos. Iñaki.
Re: Ubuntu Cron
none of the tuts or instructions mention using gedit for crontab -e. What do I do with it once I open it in gedit??