[Opensource] Just one small Question?

D Lloyd orbacle at yahoo.com
Tue Mar 11 09:44:42 PST 2003


Try to explicitly path everything.  When you run the app., your PATH is
used, however, the su running cron usually does not have the PATH set up
for security.  Also the CLASSPATH might not be set.

So try things like /usr/bin/java -classpath path1:path2 myApp 

David Lloyd
david at lloydhome.com

--- Jeff Johnson <rimg at ee.net> wrote:
> I hope this address gets out to everyone...I have a simple question I 
> think....I have a linux shell script (crontab) that I am trying to use 
> to call a java application.  It seems to work ok, but I can't seem to 
> start the application with the shell script.  when I try to start the 
> app with "java appname"  I get the message "file not found"  Can anyone 
> tell me what is going on?  I have researched google from one end to the 
> other and can't seem to find an answer...thanks...jeff
> 
> _______________________________________________
> Opensource mailing list
> Opensource at jcorporate.com
> http://mail.jcorporate.com/mailman/listinfo/opensource
> Archives: http://mail.jcorporate.com/pipermail/opensource/


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com



More information about the Opensource mailing list