Results 1 to 1 of 1
*************************************************
Hi,
I am in trouble with running a java program through a crontab.
The compiled program is located at /opt/mypath_to_java/leads/server/Server.java. When I tried to execute:
"opt/mypath_to_java># java leads/server/Server.java", it ...
- 08-16-2006 #1Just Joined!
- Join Date
- Aug 2006
- Posts
- 1
java program is not running through a crontab
*************************************************
Hi,
I am in trouble with running a java program through a crontab.
The compiled program is located at /opt/mypath_to_java/leads/server/Server.java. When I tried to execute:
"opt/mypath_to_java># java leads/server/Server.java", it worked fine.
But I tried to execute a shell script of the follwing content through crontab,
#!/bin/bash
cd /opt/mypath_to_java/
touch test_22.txt
java leads/server/Server
I got "touch test_22.txt" working, but "java leads/server/Server" is not.
Please anyone help me to resolve my problem as I need the java program working hourly....
Many thanks.
Sudheshna. K
************************************************** ***


Reply With Quote