Originally posted by Gurps Bassi:
Also, How do I execute a script on a remote machine using my java program?
Have you ever heard the joke about the woman who walks into a florist, and says "I'd like a
big bouquet of roses, please" and the florist hands them to her, and she says "And add some irises, and maybe some of those, and a few of these, and a ribbon that says "CONGRATULATIONS", and here, let me write something on the card." And the florist says "Yes, Madame. Will that be all?" And the woman says "That's perfect! Now wire it to Chicago!"
Anyway, executing a script on a remote machine means 1) There's some code on the remote machine that will let you contact it over the network and execute the script, be it an rsh or ssh service, a Web or application server, an RMI service, etc; and 2) You have to write the code to contact that code and ask it to run the program.
In other words, first you have to provide some way to run the script remotely; then you can run it.
Is there any way to access the script remotely right now? Can you use RSH or SSH to do it? Is there an application server you could use? Other options?