You are not logged in.

#1 2005-06-22 06:37:07

osigen
Member
From: cynic tub
Registered: 2005-06-18
Posts: 36
Website

Fail to save a Cron job (SOLVED)

I can't save a new cron job in my system. I use

crontab -e

or

export VISUAL=gedit && crontab -e

to add a new job. These commands open a /tmp/crontab.XXXX file that after saving, cron jobs are NOT updated!

tongue It's too strange to me* !
I run

nano -w /var/spool/cron/root

and the cron job is listed now by

crontab -l

Why I can't save cron jobs directly from crontab -e?
( I have read the vi man pages :-) )
* I am newbie, just one month Linux user with 3 distro succesfully installed


"What we cannot speak about we must pass over in silence" L. Wittgenstein

Offline

#2 2005-06-22 09:18:00

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: Fail to save a Cron job (SOLVED)

after
1. "crontab -e"
2. editing the crontab file
are you sure you also SAVE the file? (with ":wq<enter>" in vi)?

It works for me this way.

Offline

#3 2005-06-22 18:19:48

osigen
Member
From: cynic tub
Registered: 2005-06-18
Posts: 36
Website

Re: Fail to save a Cron job (SOLVED)

Ooops! VI is complicated editor.
Thanks anyway!


"What we cannot speak about we must pass over in silence" L. Wittgenstein

Offline

#4 2005-06-22 19:50:17

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Fail to save a Cron job (SOLVED)

osigen wrote:

Ooops! VI is complicated editor.
Thanks anyway!

Its a great editor once you learn to use it  wink
here's some usesfull documentation on the commands:
http://www.fprintf.net/vimCheatSheet.html

Offline

Board footer

Powered by FluxBB