Hi , 

 * On 25'th May 2002 08:22:52 AM <[EMAIL PROTECTED]> wrote :
> I am running thru a strange problem,, I have to run a cronjob to execute
> some java class files. I have made a shell script which apart from doing
> some work, runs java class file like
> /usr/local/java/bin/java classname.
> If I run the shell script as sh /path/to/shellscriptfile, It works fine. And
> when I run same file through cronjob, it is not able to locate the classpath
> and gives errors.
> I tried to export paths but i think it is not taking the paths. I also tried
> to echo the classpath which is always blank.

Set the CLASSPATH and PATH in your script itself and then export it
otherwise start java with -cp flag.

HTH
cheers
dushyanth
-- 
It has been determined that you can get far more cooperation from
a luser using a kind word and a 2X4 then with a kind word alone.

http://symonds.net/~dushy

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to