CRONTAB failure


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers CRONTAB failure
# 1  
Old 08-22-2007
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?
# 2  
Old 08-22-2007
MySQL

Quote:
Originally Posted by jithinravi
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
# 3  
Old 08-22-2007
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)
# 4  
Old 08-22-2007
Quote:
Originally Posted by jithinravi
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 07:53 AM..
# 5  
Old 08-22-2007
identified the issue... u need to press enter a carriage return at the end of the line.
# 6  
Old 08-22-2007
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Crontab authentication failure

Dear all, I noticed in syslog that i receive authentication failure from cron: Mar 11 23:19:01 s1 CRON28789]: Authentication failure Mar 11 23:19:01 s1 cron: Authentication failure Mar 11 23:19:01 s1 cron: Authentication failure Mar 11 23:19:01 s1 CRON: Authentication failure Mar 11... (3 Replies)
Discussion started by: mydove
3 Replies

2. Solaris

Backup Failure

Hi Team, Am new to solaris. There is a script in the crontab that issues backup at a scheduled time. It fails alway. here are some logs. Can anyone please help why backup fails.: sdpuser@sdp3a>dmesg ... (4 Replies)
Discussion started by: andersonedouard
4 Replies

3. UNIX for Dummies Questions & Answers

boot up failure unix sco after power failure

hi power went out. next day unix sco wont boot up error code 303. any help appreciated as we are clueless. (11 Replies)
Discussion started by: fredthayer
11 Replies

4. Shell Programming and Scripting

Sftp failure

Hello, Sometimes when i execute my shell that makes sftp it gives me this error: Couldn't close file: Failure. What does it mean?, how can i make sure it will do ok?. Bye (2 Replies)
Discussion started by: rubber08
2 Replies

5. Solaris

DMA failure ?

Our Solaris was hung yesterday, and dmesg show that, nxge3 : <== nxge_m_start: initialization failed nxge2 : nxge_dma_mem_alloc:ddi_dma_mem_alloc kmem alloc failed nxge2 : nxge_alloc_rx_buf_dma: Alloc Failed: dma 9 size_index 10 size requested 4194304 Does it mean the DMA failure ? How... (5 Replies)
Discussion started by: dehetoxic
5 Replies

6. UNIX for Advanced & Expert Users

su failure

Usually when su rejects an attempt to switch user it responds with "Sorry" but with a certain username on some unix servers the response is "Killed". I'm guessing the su accepted the username/password but refused to spawn child shell with the specified username. What's causing this and what has to... (8 Replies)
Discussion started by: twk
8 Replies

7. UNIX for Advanced & Expert Users

Bind failure

Hi all, I am using Perl program to do socket communication. My application has to use port 40001 this is a condition I can't change the port. The execution of this script always gave an error 'Bind failure port already in use' netstat execution gives below line: udp 0 0 ... (5 Replies)
Discussion started by: zing_foru
5 Replies

8. UNIX for Advanced & Expert Users

dtdbcache failure

Hi, I'm using WRQ Reflections 12.0.6 on Windows XP to open a Xsession to HP 11.11 server. After providing password, the CDE window is displayed and then receive a "dtdbcache failure" message "Couldn't recreate the Desktop Actions/Datatypes Database. Check disk space and/or permissions." I... (3 Replies)
Discussion started by: Leese
3 Replies

9. Shell Programming and Scripting

Crontab failure.Can't open shared library

Plz advise on the following error for a crontab job i have scheduled for running a script /usr/lib/dld.sl: Can't open shared library: /home/build3p/PMReleases/Symphony711/HP-UX/rw/710/lib/libtls4d.sl /usr/lib/dld.sl: No such file or directory /ushhquest/data001/Scripts/Inform/Build_Data.sh:... (0 Replies)
Discussion started by: reader_regular
0 Replies

10. Programming

ld failure

Hi, I am using gmake to compile a c program with a makefile. The make file runs ld. I get the following error jsh1035c:/users/egate453/admegate/kapil/samples $ gmake -e -f GNUmakefile queue_c gmake -f ./GNUmakefile queue_c in_objdir=1 build_root=/users/egate453/admegate/kapil/samples... (2 Replies)
Discussion started by: handak9
2 Replies
Login or Register to Ask a Question