File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Calling shell script " Watch "Calling shell script " New topic

Calling shell script

Rajesh Kandhasamy

Joined: Sep 19, 2005
Posts: 15

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:
subject: Calling shell script
It's not a secret anymore!