UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 15th, 2005, 06:21 AM
simam simam is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 4 simam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 35 sec
Reputation Power: 0
Smile "can't access your crontab file. Resubmit it."- Crontab error

I am getting mail from root:
"can't access your crontab file. Resubmit it."
The error is "No such file or directory"

Also I observed that this mail is sent when I get a cron log message in /var/cron/log:

! unexpected pid returned 22459 (ignored) Mon Mar 14 18:45:15 2005

When I checked the above pid it was of /usr/sbin/cron

Would anyone tell me what the reason can be? At least please give me some options so that I can proceed with that.
Thanks a lot in advance
simam

Reply With Quote
  #2  
Old March 15th, 2005, 07:50 AM
zlutovsky zlutovsky is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Prague, Czech Rep.
Posts: 116 zlutovsky User rank is Corporal (100 - 500 Reputation Level)zlutovsky User rank is Corporal (100 - 500 Reputation Level)zlutovsky User rank is Corporal (100 - 500 Reputation Level)zlutovsky User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 h 34 sec
Reputation Power: 6
Quote:
Originally Posted by simam
I am getting mail from root:
"can't access your crontab file. Resubmit it."
The error is "No such file or directory"

Also I observed that this mail is sent when I get a cron log message in /var/cron/log:

! unexpected pid returned 22459 (ignored) Mon Mar 14 18:45:15 2005

When I checked the above pid it was of /usr/sbin/cron

Would anyone tell me what the reason can be? At least please give me some options so that I can proceed with that.
Thanks a lot in advance
simam


Hi,

look in /var/spool/cron/crontabs/ directory. There should be a file named $LOGNAME (your logname), where your jobs are stored. You must be allowed to submit cron jobs, ask your system administrator. Normaly, only root can submit cron jobs.

Look in man cron, man crontabs

Regards

Reply With Quote
  #3  
Old March 16th, 2005, 01:16 AM
simam simam is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 4 simam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 35 sec
Reputation Power: 0
Hi zlutovsky,

Thanks a lot for you suggestions. But in this case I am working in the root equivalent account and it is allowed to submit cronjobs.
Also all the time it is not giving the mail. Only when the error "unexpected pid returned" comes in the /var/crom/log , I am getting a mail from the root.
I came to know that there is a chance of cron file getting corrupted if we edit it by using vi editor. If it is that case, writing the cron file afresh will solve the problem? ( I mean using crontab -e).

Thanks and warm regards,
simam

Reply With Quote
  #4  
Old March 16th, 2005, 01:38 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 44 m 45 sec
Reputation Power: 9
NEVER edit crontabs directly usin an editor
crontab -e make a lot more the just edit.
if corrupted, remove it, create a new one stop and restart cron
on SVR4 use /etc/rc2.d/S??cron
man crontab will point you to files in /etc/cron.d
have a loock, carefully pay attention to NOTE
__________________
working on Solaris[5-9], preferred languages french and C.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > "can't access your crontab file. Resubmit it."- Crontab error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway