General
cancel
Showing results for 
Search instead for 
Did you mean: 

Cron configuration in HP-UX B.11.31

VirajDodanwala
Occasional Visitor

Cron configuration in HP-UX B.11.31

Hi,

 

We are running some DB connector application in HP-UX B.11.31 Super Droomm server.

In that application we need to start the application by running start.sh script everyday at 8.00AM.

 

File location : /WASapp/Dev/DBC/start.sh

Following are the output of some commands.

 

cron tab -l                               : 00 08 * * * /WASapp/Dev/DBC/start.sh

who am i                                 : wasadm

more /var/adm/cron/log    :  > CMD: /WASapp/Dev/DBC/start.sh

 

Though the cron is run, the application is not started.

When i run the application by selecting the exact script path in CRONTAB , the application starts.

 

Is there anything that i did wronge here??

Can any one help...?

 

 

2 REPLIES
Dennis Handly
Acclaimed Contributor

Re: cron configuration in HP-UX B.11.31

When you use cron, your .profile isn't sourced.  If you have any variable settings, these must be done manually either in your crontab entry or in your script.

Matti_Kurkela
Honored Contributor

Re: cron configuration in HP-UX B.11.31

And if the command that is executed by cron returns any error messages, those error messages will be automatically emailed to the user. If local emails are not directed to any central mail server, those emails would end up in the local email inbox... in this case, into the /var/mail/wasadm file.

 

Reading that file may provide more clues about what is going wrong.

MK