Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th July 2012, 05:41 PM
karthick87 Offline
Registered User
 
Join Date: Nov 2011
Posts: 22
windows_xp_2003firefox
Unable to set cronjob in Fedora 16

I am unable to set any cronjob using "crontab -e". The set cronjob is not listed when using "crontab -l" How to fix this issue?

Error:
Code:
[karthick@karthick-it ~]$ crontab -e
no crontab for karthick - using an empty one
crontab: installing new crontab
"/tmp/crontab.k6HMVB":1: bad command
errors in crontab file, can't install.
Do you want to retry the same edit? n
crontab: edits left in /tmp/crontab.k6HMVB
[karthick@karthick-it ~]$ crontab -l
no crontab for karthick

Last edited by karthick87; 15th July 2012 at 10:47 AM.
Reply With Quote
  #2  
Old 15th July 2012, 12:54 PM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: Unable to set cronjob in Fedora 16

You know how to use vi? If you don't then try something like

Code:
export EDITOR=gedit
or any other text editor you know how to handle ;-)
Reply With Quote
  #3  
Old 15th July 2012, 01:03 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,107
linuxfirefox
Re: Unable to set cronjob in Fedora 16

I prefer to keep a copy of the crontab entries. Then I can edit that at will (and leave in the middle if called away). Use any editor you want.

The use "crontab <file" to load it. Now you have a backup of the active file - in case something goes off that shouldn't (such as an accidental fork bomb, causing the admin to delete the crontab file from the system).

As another suggestion, I keep the entries simple in the crontab file. I use references to scripts for things that have two (or more) commands. This allows me to edit the script (and test them) before being put in the active crontab list.
Reply With Quote
Reply

Tags
cronjob, fedora, set, unable

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cronjob for freshclam mouse_runner Using Fedora 1 26th April 2010 09:01 PM
Cronjob Question RobinQi Using Fedora 2 14th March 2010 04:06 AM
cronjob not working jerry08 Using Fedora 7 10th January 2009 09:32 AM
Cronjob going early comptech520 Using Fedora 0 1st November 2007 11:46 AM
Cronjob problem RSD Using Fedora 9 1st September 2006 06:23 PM


Current GMT-time: 17:12 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat