Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

java, xml, crontab - cannot find xml file

Status
Not open for further replies.

tekatoo

Programmer
May 29, 2002
4
US
If I execute a java application from the directory where both the jar files and XML file reside, the application runs fine. When I put the UNIX script, which runs the java application, into my crontab, the application is unable to find the XML file. I've tried enhancing the PATH to look for the directory and I've also tried "fully qualifying" the name of the XML file in the application.
Regardless of what I do, it will not run in the crontab.
Any clues????
THANKS
 
I had this problem with a DNS program I wrote, if you post your crontab entry, maybe I can help.
 
my crontab entry is similar to this
30 * * * * /xxx/yyy/zzz/abc.csh >> /xxx/yyy/zzz/error.log 2>&1

the xml (dataBase.xml) file resides in the directory /xxx/yyy/zzz/ and the jave code does not reference the specific directory, but relative to where the application runs (which is in /xxx/yyy/zzz/)
Regardless of what we do, put in path statements, "change directory (cd)", the crontab still looks for the entry in home directory versus /xxx/yyy/zzz/.

????????????? any suggestions, please
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top