This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Calling shell script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Calling shell script " Watch "Calling shell script " New topic
Author

Calling shell script

Rajesh Kandhasamy
Greenhorn

Joined: Sep 19, 2005
Posts: 15
Hi,

I would like to call shell script from one linux box to other linux box

how to call shell script which reside in other linux box,

Thanks in advance,
Rajesh Kandhasamy
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

You can ssh to the other Linux box and run the script there. That's what I normally do. Does this help you?


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Darrin Cartwright
Ranch Hand

Joined: Dec 27, 2002
Posts: 107
And if you can ssh, you can do it all in one command like:

Exchange ssh keys and you won't have to supply a password, which makes it easy to run from a program.


Life is good on the Ponderosa,<br />but mind where you step.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling shell script
 
Similar Threads
Loading Properties into WAS on Startup
Get the UNIX process ID of the java program
runtime exec
call java program from script?
JSP Page to call Linux Shell Script