On Mon, 16 Oct 2006 05:37:10 -0700, Lazytiger wrote this:
I just found that when crontab executing a shell script, that shell didn't
have any enviroment virable set before. And this problem cause me a lot of
time to solve out.
I write a shell to excute a java application. This shell runs well
standalone, but it does nothing crontab executes it. At last I found that
it doesn't have any enviroment virable at all,including java. I use
crontab mycrontabfile to generate a new crontab job.Did i do it wrongly or
this is just what crontab does?
Set the variables you need in the shell script. For example,
NODE=$(uname -n)
HOME=$(HOME)
DATENOW=$(date +%c)
About Redhat crontab!!! ... I just found that when crontab executing a shell script,... I write a shell to excute a java application. ... (linux.redhat)
Re: Is anything easier to do in java than in lisp? ... > cruel since Java is such a simple, powerless language, but c.l.l. ... which however are useless to me here on VT100 dialup into Unix shell.... But where does expendable income come from? ... shell% kennyLabor | wageCalc ... (comp.lang.java)
Re: Is anything easier to do in java than in lisp? ... > cruel since Java is such a simple, powerless language, but c.l.l. ... which however are useless to me here on VT100 dialup into Unix shell.... But where does expendable income come from? ... shell% kennyLabor | wageCalc ... (comp.lang.lisp)
Re: Java/LE Tuning Advice sought ... I'm afraid that the reports that you are seeing are from the parent shell and not the java process,... your shell script is maybe using "iconv" pipes to convert output from java/jboss from ascii to ebcdic. ... You might be able to use _CEE_RUNOPTS settings to tell LE to write its "MSGFILE" somewhere else. ... (bit.listserv.ibm-main)
More SMP/E Enhancements for Java installs ... IBM is apparently planning further enhancements in their support for Java... components and JAR and shell scripts as a utility. ... a logon shell - all for RECEIVE command and certain GIMxxx service routines. ... site's /etc/profile will no longer influence how SMP/E APPLY or RESTORE ... (bit.listserv.ibm-main)