LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-17-2008, 02:56 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 51
Alternative to crontab -e, time error (no gui)


Hello,

I am encountering problems with crontab -e.
It does not accept
Code:
01 22 * * *     cp ~/file1 ~/file2
It looks that
Code:
01 9 * * *     cp ~/file1 ~/file2
I used KCRON and it did work. Kcron wrote the same as I wrote.

Is there any alternative to crontab -e, could we just edit or vim instead of nano could work better maybe ?

thanks
 
Old 02-17-2008, 03:55 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,406

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
that last sentence makes very little sense, but crontab -e uses the EDITOR env variable, so you could just change that to whatever you want...

export EDITOR=/usr/bin/nano
crontab -e
 
Old 02-17-2008, 04:09 PM   #3
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
How did it fail?

What errors did you get when you saved the crontab?

If you want a different editor, put

export EDITOR=vi

in your ~/.bash_profile.
 
Old 02-18-2008, 12:21 PM   #4
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by cmnorton View Post
What errors did you get when you saved the crontab?

If you want a different editor, put

export EDITOR=vi

in your ~/.bash_profile.
it said this
"errors in crontab file, can't install.
Do you want to retry the same edit?"

I just did mouse middle click from an another working crontab from another machine. All's working on that distance linux box, that's why I cannot understand (focused from another xterm).

I will try again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Crontab time question thetawaverider Linux - Newbie 3 05-24-2007 10:30 PM
Crontab time afbase Linux - Newbie 5 12-31-2006 09:34 PM
crontab 24-hour time cleopard Linux - General 2 05-09-2006 07:24 AM
where is cbq gui? (or perhaps alternative) beejayzed Linux - Networking 2 10-02-2005 03:13 PM
Alternative GUI file manager confused_bof Suse/Novell 2 04-24-2005 09:43 PM


All times are GMT -5. The time now is 07:32 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration