pls help me in this immediately...
Problem with JAVA command in shellscript..
I have a script Cachereload.sh in one server which has the following command:
java -jar SingMgmnt.jar $4 $2 $3 sixdee sixdee $5
This is working very fine when i run it from the same server.
But i want to run this script from another server and i did it as
ssh [email protected] 'sh -c "./Cachereload.sh"'
which will prompt for the password, and after that it executes the script. But then I'm getting an error,
./CacheReload.sh: line 4: java: command not found
But only java command is not working i think.. bcoz pwd, ls and even mysql command is working fine from remote server itself..
Please help me out..
Thanking you All Akhil