LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-28-2013, 11:44 AM   #1
seyiisq
LQ Newbie
 
Registered: Sep 2013
Posts: 13

Rep: Reputation: Disabled
Cron Job not working


Hello All,
I am using REDHAT Linux and I am just learning Linux
I created a cron job to run at specific time everything seems alright initially until I checked the /var/log/cron.

Below are my observations

Code:
linux>ps -A | grep cron
 2099 ?        00:01:45 crond
19204 ?        00:00:00 crond

Linux>su -
Password:
[root@xxx ~]# ls -l /val/log/cron.log
ls: /val/log/cron.log: No such file or directory

[root@pserver ~]#  chkconfig --list|grep cron
anacron         0:off   1:off   2:on    3:on    4:on    5:on    6:off
crond           0:off   1:off   2:on    3:on    4:on    5:on    6:off

[root@pserver ~]# tail /var/log/cron
Sep 28 17:26:01 pserver crond[19698]: PAM (system-auth) illegal module type: uth
Sep 28 17:26:01 pserver crond[19698]: PAM unable to dlopen(/lib/security/$ISA/)
Sep 28 17:26:01 pserver crond[19698]: PAM [dlerror: /lib/security/../../lib/security/: cannot read file data: Is a directory]
Sep 28 17:26:01 pserver crond[19698]: PAM adding faulty module: /lib/security/$ISA/
Sep 28 17:26:01 pserver crond[19699]: (root) CMD (/etc/init.d/mfe-dbs-sensor monitor > /dev/null 2>&1)
Sep 28 17:27:01 pserver crond[19740]: PAM (system-auth) illegal module type: uth
Sep 28 17:27:01 pserver crond[19740]: PAM unable to dlopen(/lib/security/A/)
Sep 28 17:27:01 pserver crond[19740]: PAM [dlerror: /lib/security/../../lib/                             security/: cannot read file data: Is a directory]
Sep 28 17:27:01 pserver crond[19740]: PAM adding faulty module: /lib/security/$ISA/
Sep 28 17:27:01 pserver crond[19741]: (root) CMD (/etc/init.d/mfe-dbs-sensor monitor > /dev/null 2>&1)
Please can anyone advice. I am not sure of what else to do

Thanks
 
Old 09-28-2013, 11:59 AM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
Quote:
Originally Posted by seyiisq View Post
I am not sure of what else to do

Thanks
you could post your cronjob script(s)
 
Old 09-28-2013, 12:25 PM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,134

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
maybe its not finding where the executables are... that is usually fixed by putting the whole /path/to/filename in the scripts.
 
Old 09-28-2013, 01:21 PM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,450

Rep: Reputation: 2776Reputation: 2776Reputation: 2776Reputation: 2776Reputation: 2776Reputation: 2776Reputation: 2776Reputation: 2776Reputation: 2776Reputation: 2776Reputation: 2776
you should always remember, cron has its own environment, so you would need to use full path to your executables also you would need to collect info (stdout, stderr) to be able to find out what's happening (for example):
* * * * * /full/path/to/app args >/full/path/to/log/stdout 2>/full/path/to/log/stderr
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cron job not working said76 Linux - Newbie 11 12-19-2011 06:46 PM
Job in /etc/cron.d not working BrianK Linux - General 6 11-03-2011 09:03 AM
cron job not working? tekram Linux - Server 15 06-09-2011 11:18 PM
Cron Job Not Working... ALInux Linux - Software 2 07-24-2007 04:15 AM
Cron job not quite working... simba_cubs Linux - General 10 11-08-2006 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration