LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-19-2007, 12:34 AM   #1
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Crontab changes not permanent


I'm having a weird problem with Slack 12.0 and dcron. It uses the VISUAL environment variable, which I've set to /usr/bin/emacs and I can do a "crontab -e" and edit the file fine. However, after saving the changes, exiting Emacs and then doing a "crontab -l" it seems the crontab has reverted to the old version :/. What's weird is that editing my user's crontab worked fine, but this problem happens when I'm editing root's crontab.

Any ideas? Thanks!
 
Old 07-19-2007, 01:42 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
My only suggestion would be to run that under strace
and see what it's trying to do when writing the the
file back and exiting.

And what does it do if you if you set VISUAL to vim?


Cheers,
Tink
 
Old 07-19-2007, 02:14 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
It works fine if I use vi (I just unset VISUAL). I don't know if it's something to do with Slack 12.0, because setting VISUAL in the same way under 11.0 never caused problems for me. I will run strace when I have some more free time and see what happens. Never used strace before, so I'll have to learn!

Thanks Tink!
 
Old 07-19-2007, 02:42 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Code:
crontab -e -u root
?
 
Old 07-19-2007, 07:08 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
man crontab



Cheers,
Tink
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
permanent alias Haloony Linux - Newbie 2 03-09-2006 10:12 PM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 12:35 PM
Permanent IP address linksocc Linux - Networking 2 10-10-2003 10:56 PM
permanent mount jerrod Linux - Newbie 4 04-14-2003 06:36 PM
IP assignment - permanent? dalraidia Linux - Networking 1 12-13-2002 10:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration