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:
  #1  
Old April 26th, 2005, 07:39 AM
dmuxaf dmuxaf is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Overseas - Azores
Posts: 7 dmuxaf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 54 m 36 sec
Reputation Power: 0
Crontab

Hello. I understand the basics of crontab. I added two entries to my crontab file a few months ago and now they don't work any more. I haven't done anything to the script in the crontab file nor I have done anything to the file that the scripts output to.

Any suggestions of where I should look to resolve this problem? I'm still fairly new with using UNIX. Thanks!

Reply With Quote
  #2  
Old April 26th, 2005, 08:40 AM
gruntz gruntz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 53 gruntz User rank is Private First Class (20 - 50 Reputation Level)gruntz User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 22 h 39 m 25 sec
Reputation Power: 5
couple of things come to mind.

cron isn't running? This is a daemon that executes crontab.

Your crontab access has been removed. If you are listed in /etc/cron.d/cron.deny(if exists) or not in /etc/cron.d/cron.allow.

Check your man page...man -k for more info

Reply With Quote
  #3  
Old April 27th, 2005, 07:19 AM
zlutovsky zlutovsky is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Prague, Czech Rep.
Posts: 117 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 42 m 44 sec
Reputation Power: 6
Quote:
Originally Posted by gruntz
couple of things come to mind.

cron isn't running? This is a daemon that executes crontab.

Your crontab access has been removed. If you are listed in /etc/cron.d/cron.deny(if exists) or not in /etc/cron.d/cron.allow.

Check your man page...man -k for more info


Hello,

somebody can have changed the PATH variable, too. Check your mail, where you can find some hints. If I were you, I would redirect the stdout and stderr from your cron job into files. It makes it possible to catch the error messages easily.

Regards

Reply With Quote
  #4  
Old April 28th, 2005, 05:51 AM
dmuxaf dmuxaf is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Overseas - Azores
Posts: 7 dmuxaf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 54 m 36 sec
Reputation Power: 0
Hmmm... I think I found the problem. First, thanks for the help. I was sure cron was running because two other scripts were working. I checked the /usr/lib/cron/log file and noticed that the two scripts in question were in that file. So, I decided to try and run the scripts manually and that didn't work. I got an argument of "execute permission denied." I checked the permissions on the scripts and they weren't right.

Now I'm wondering how and why the permissions changed?!?!

Reply With Quote
  #5  
Old April 29th, 2005, 03:23 AM
zikronz zikronz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 2 zikronz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 26 m 40 sec
Reputation Power: 0
please help me.
i made a script...
the script cannot work...
the error message appear is SQLPLUS cannot execute
i have already prepared the sqlplus at the proper path
but script cannot execute..."sqlplus cannot execute"...i try use
login root and usual user.still cannot work.
but when i run normal mode it work.
something problem when i use crontab with my script...help me

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Crontab


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 2 hosted by Hostway