The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Crontab failure.Can't open shared library reader_regular Shell Programming and Scripting 0 01-26-2006 10:43 AM
GCC bootstrap failure on AIX 5.3 Duggerdee AIX 2 10-18-2005 03:38 PM
ld failure handak9 High Level Programming 2 09-29-2004 07:56 AM
solaris second cd failure hcclnoodles UNIX for Dummies Questions & Answers 1 03-03-2003 09:31 PM
CPU failure??? 98_1LE UNIX for Dummies Questions & Answers 1 01-23-2001 02:38 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-22-2007
Registered User
 

Join Date: Apr 2007
Posts: 8
CRONTAB failure

am getting the following error while trying to create a new crontab file:

(jravisha) jravisha- crontab -e
no crontab for jravisha - using an empty one
crontab: installing new crontab
"/tmp/crontab.XXXXH3SJgR":1: premature EOF
errors in crontab file, can't install.
Do you want to retry the same edit?

any idea why?
Reply With Quote
Forum Sponsor
  #2  
Old 08-22-2007
Registered User
 

Join Date: Aug 2007
Location: Bangalore
Posts: 288
Thumbs up

Quote:
Originally Posted by jithinravi View Post
am getting the following error while trying to create a new crontab file:

(jravisha) jravisha- crontab -e
no crontab for jravisha - using an empty one
crontab: installing new crontab
"/tmp/crontab.XXXXH3SJgR":1: premature EOF
errors in crontab file, can't install.
Do you want to retry the same edit?

any idea why?
You can do something like this---

crontab -e "username"
if you are a user put your name as a user something like

crontab -e jravisha

Thanks
Namish
Reply With Quote
  #3  
Old 08-22-2007
Registered User
 

Join Date: Apr 2007
Posts: 8
Nope! sorry that doesnt work

crontab -e jravisha
crontab: usage error: no arguments permitted after this option
usage: crontab [-u user] file
crontab [-u user] [ -e | -l | -r ]
(default operation is replace, per 1003.2)
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)
-i (prompt before deleting user's crontab)
Reply With Quote
  #4  
Old 08-22-2007
Registered User
 

Join Date: Aug 2007
Location: Bangalore
Posts: 288
Quote:
Originally Posted by jithinravi View Post
Nope! sorry that doesnt work

crontab -e jravisha
crontab: usage error: no arguments permitted after this option
usage: crontab [-u user] file
crontab [-u user] [ -e | -l | -r ]
(default operation is replace, per 1003.2)
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)
-i (prompt before deleting user's crontab)
Where you are running this command.I am running in solaris and it is working perfectlly fine for me.Here jravisha should be a user added in unix machine otherwise it wont work.did you get what i say.The user name is through which you login to unix prompt.

Thanks
Namish

Last edited by namishtiwari; 08-22-2007 at 03:53 AM.
Reply With Quote
  #5  
Old 08-22-2007
Registered User
 

Join Date: Apr 2007
Posts: 8
identified the issue... u need to press enter a carriage return at the end of the line.
Reply With Quote
  #6  
Old 08-22-2007
psiva_arul's Avatar
Registered User
 

Join Date: Jul 2007
Location: Bangalore, India
Posts: 78
Hi,

You can issue crontab -l , it will list out the all crontjob which is in you terminal (server). Sometime you will not get anything if issue the crontab -e command in you server because i think your user doesn't have the previlleges for edit the crontab;

crontab -l --> List out the all cronjobs in your server but you can't edit the cronjobs.
crontab -e --> List out the all cronjobs and you can edit the cronjobs

Regards,
Siva.P
Bangalore
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0