hi Linux Users,
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.

Is there any method we can change the cron environment? Does cron take
varaibles from .bash_profile of the user ( i think NO)

Please Help !!

Rgds
Ashish Lahori
Team Leader
India Today group Online.


_______________________________________________________________

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