LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
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: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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 Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
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



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 10:23 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
Open Source Consulting | Domain Registration