Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling shell script

 
Rajesh Kandhasamy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can ssh to the other Linux box and run the script there. That's what I normally do. Does this help you?
 
Darrin Cartwright
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic