Hi
I have a system running solaris 11
, in which I am able to execute a script from the command line, but once I put i the crontab
does run, but do not give results.
The entry is:
15 11 * * * /var/oswbb/./startOSWbb.sh >> myjob.log 2>&1
30 11 * * * /var/oswbb/./stopOSWbb.sh
I have check permissions of the script in its directory and all have the right permissions, but owner and group are numbers:
-rwxr-xr-x 1 2052 8500 2574 Feb 26 2015 startOSWbb.sh
I also check the /var/log/cron
and got the following:
> CMD: /var/oswbb/./startOSWbb.sh >> /var/log/myjob.log 2>&1
> root 29486 c Fri Apr 27 10:55:00 2018
< root 29486 c Fri Apr 27 10:55:00 2018
> CMD: /var/oswbb/./stopOSWbb.sh
> root 29491 c Fri Apr 27 10:59:00 2018
< root 29491 c Fri Apr 27 10:59:00 2018 rc=2
> CMD: /var/oswbb/./startOSWbb.sh >> myjob.log 2>&1
> root 29562 c Fri Apr 27 11:15:00 2018
< root 29562 c Fri Apr 27 11:15:00 2018
> CMD: /var/oswbb/./stopOSWbb.sh
> root 29578 c Fri Apr 27 11:30:00 2018
< root 29578 c Fri Apr 27 11:30:00 2018 rc=2
rc=2
aparently means file do not exist, but its not the case.
Any suggestions