1752807 Members
5708 Online
108789 Solutions
New Discussion

Who Me Too'd this topic

petrbena
Occasional Advisor

Crontab for certain user doesn't work

Hi, I am unable to create a job for certain user (oracle), this user is in /usr/lib/cron/cron.allow, cron service is running and work for other users (such as root), the crontab file is in /usr/spool/cron/crontabs as expected. The crontab log has entry for each execution but the file is NOT executed.

 

I inserted to beginning of script:

 

#!/bin/sh

echo `date` >> /some/path/log

 

(where /some/path is a path for log file), when I start the script from terminal it create an entry in this log file, it never creates an entry when it is running from cron, therefore the script isn't executed.

 

Is there a way to check why it happens?

 

This is a log from cron:

>  CMD: /usw/app/oracle/admin/CRMISEF1/statspack/test.sh >> /usw/app/oracle/admin/CRMISEF1/statspack/sh.log 2>/dev/null
>  oracle 21019 c Mon Oct  8 15:58:00 METDST 2012
<  oracle 21019 c Mon Oct  8 15:58:00 METDST 2012 ts=9

Who Me Too'd this topic