Operating System - HP-UX
1834694 Members
2397 Online
110069 Solutions
New Discussion

warning: commands will be executed using /usr/bin/sh

 
SOLVED
Go to solution
apple
Super Advisor

warning: commands will be executed using /usr/bin/sh

dear hpux gurus,
would like to seek yr advice. i tried to run the cron jobs, but hit this error? what would be the corrective action? hope to hear from you. thank you


cron may not be running - call your system administrator
warning: commands will be executed using /usr/bin/sh
9 REPLIES 9
T G Manikandan
Honored Contributor

Re: warning: commands will be executed using /usr/bin/sh

check /var/adm/messages or cron log file.
ps -ef|grep cron to check if crond is running.
sreekanthtm
Trusted Contributor

Re: warning: commands will be executed using /usr/bin/sh

Make Sure that cron is running your Server

# ps -ef | grep cron

Which command you are trying through cron? Are you using any script?

Rgds
Sreekanth
Ganesan R
Honored Contributor

Re: warning: commands will be executed using /usr/bin/sh

Hi,

Check cron is running or not.

# ps -ef |grep -i cron
root 1346 1 0 Feb 18 ? 0:07 /usr/sbin/cron

If not start cron by this command.

#/sbin/init.d/cron start

look at the cron log file /var/adm/cron/log
Best wishes,

Ganesh.
Johnson Punniyalingam
Honored Contributor

Re: warning: commands will be executed using /usr/bin/sh

Hi Apple,

# ps -ef |grep -i cron

# /sbin/init.d/cron status
(the above comand will show "cron running"

If not running please start the cron as below

# /sbin/init.d/cron start

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
apple
Super Advisor

Re: warning: commands will be executed using /usr/bin/sh

dear Sir,
ok, im at home. will check tomorrow at office whether the cron services is runing or not. from the log i check this evening, it says cron started something like that.

apple
Super Advisor

Re: warning: commands will be executed using /usr/bin/sh

dear sir,
i tried to stop and start the cron. but when i issue ps -ef |grep -i cron, the cron is not started.
when i check the cron log, the file attribute was 8 jan, 2008 which was last year. no log for the past one year.

hope to hear from you. thank you
T G Manikandan
Honored Contributor
Solution

Re: warning: commands will be executed using /usr/bin/sh

please chk if cron is enabled at

vi /etc/rc.config.d/cron
CRON=1
sreekanthtm
Trusted Contributor

Re: warning: commands will be executed using /usr/bin/sh

What's the error you are getting while starting cron?

Use this command and post the output

# /sbin/init.d/cron start


Rgds
Sreekanth
apple
Super Advisor

Re: warning: commands will be executed using /usr/bin/sh

thank you