Operating System - HP-UX
1758603 Members
1739 Online
108873 Solutions
New Discussion юеВ

script with symcli command not work in cron

 
Michael Schulte zur Sur
Honored Contributor

Re: script with symcli command not work in cron

Hi Simon,

since you do not redirect errors, you might find error ouput in mail.
If the command ran, it should have created /tmp/bcv_list no matter what other errors come from the programme.
Can you post the crontab entry?

use:
#!/usr/bin/ksh
export SYMCLI_DB_FILE=/var/symapi/db/symapi_db.bin
/usr/symcli/bin/symmir -g bcv1 query > /tmp/bcv_list 2>&1


greetings,

Michael
Camel_1
Valued Contributor

Re: script with symcli command not work in cron

thanks everyone, it works now.
Michael Schulte zur Sur
Honored Contributor

Re: script with symcli command not work in cron

Hi Simon,

thanks for the points. Would you enlighten us as to the cause of the problem and the solution?

thanks,

Michael