Running Java program from script shell using SSH
807601Apr 2 2008 — edited Apr 2 2008Hello!
I have this problem: I need to run a java command like: java Prog arg1 arg2 arg3 on i machines, using a shell script.
First of all, I'm trying to make it work for a single machine. But the problem is when I write the line << ssh user@localhost "java -classpath /a/b/ Prog arg1 arg2 arg3" >> and run the script, it is not able to execute the entire line. Is there a special options for the arguments of my Prog class? I want to mention that between my arguments there is another text file which is read by the Prog and when i run the script says it cannot find that file; Please any ideas for not remain stuck here?
Thank You in advance!