![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Crontab not recognizing the jar files | rajuutla | UNIX for Dummies Questions & Answers | 4 | 05-01-2008 11:20 PM |
| Crontab not recognizing the jar files | rajuutla | UNIX for Advanced & Expert Users | 0 | 04-30-2008 03:39 AM |
| Can crontab execute binary files? | Tris | UNIX for Dummies Questions & Answers | 5 | 12-07-2006 10:16 AM |
| recognizing *.* in find | amarnath | Shell Programming and Scripting | 3 | 07-17-2006 03:24 AM |
| recognizing * character | csejl | Shell Programming and Scripting | 3 | 11-15-2005 10:55 PM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi All,
I am using crontab which execute a shell script. In the shell script, I am executing a java program. This Java program requires the jar files. The cron job file ' cronfile.txt ' contents: MAILTO="raju_utla@dcis.uohyd.ernet.in" 0-59 * * * * ./cronfile.sh >> /home/rajuutla/FilesForCronJob/logFileForCron.log The shell script( cronfile.sh ) contents : #!/bin/bash #check weather server prog is running or not test=`ps aux | grep -c java\ PostgresServer` JAVA_HOME=/opt/SDK/jdk CLASSPATH=/home/rajuutla/pg74.jdbc3.jar:. if [ $test -eq 1 ] then echo `date` $JAVA_HOME/bin/java -classpath $CLASSPATH PostgresServer fi The java program 'PostgresServer' which i am executing requires the jar file 'pg74.jdbc3.jar' mentioned above. The problem is, directly running the above shell script with out cron, I am able to get the results. But when I use the crontab to run the java program I am not able to get the results. What may be the problem? How to resolve this problem? I am unable to find it out. Please help me. Thanks to All. Raju |
| Forum Sponsor | ||
|
|