1833682 Members
4831 Online
110062 Solutions
New Discussion

Cron error.

 
Jeffrey F. Goldsmith
Super Advisor

Cron error.

I have an rp3440 server with HP-UX 11.23 installed and I am getting errors when my cron jobs run.

Last week I rebooted my server and after that my cron jobs don’t seem to want to run any more. I think I know what the problem is but don’t know how to fix it.

My server came with roots home located /home/root and I moved it to /root. My cron jobs kept working for some reason. Now, after the server boot, I get the following error:


sh: /home/root/genadmin: Execute permission denied.

*************************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:

/home/root/genadmin


The problem I see is that it is still pointing to the /home/root/ location for the genadmin file when it should be looking in the /root/ location. Here is a copy of the cron file in crontabs:

root: /var/spool/cron/crontabs ==> more root
50 23 * * * /root/genadmin

root: /var/spool/cron/crontabs ==>



What am I missing?
2 REPLIES 2
KapilRaj
Honored Contributor

Re: Cron error.

check the script /root/genadmin , that must be calling /home/root/genadmin inside it.
Nothing is impossible
Yogeeraj_1
Honored Contributor

Re: Cron error.

Hi,

also verify that the execute attribute of the script is set

chmod +x /home/root/genadmin

kind regards
yogeeraj

No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)