Crontab path when execute a job
I have and entry in a crontab for my user (appadmin) that when it executes it does not start with the proper path. It needs to start as the appadmin user as appadmin owns all the directories for glassfish.
00 01 * * * appadmin /home/appadmin/scripts/restartProdSubDomainandNode.sh
However, once glassfish restarts, the hudson application cannot find the default JDK. I get an error.
If I initiate the restart via command line, all works as it should.
I believe it has something to do with PATH in the crontab but am not sure what I need to set the PATH to in crontab. Here is what I think ... you guy can weigh in on this ...
As always, appreciate your input ...