Connecting Tech Pros Worldwide Help | Site Map

Executing shell script remotely

  #1  
Old June 20th, 2008, 11:26 AM
Newbie
 
Join Date: Jun 2008
Posts: 1
Hi

I had 2 AIX system.i want to run a shell script on one machine, which will execute another shell script on another AIX machne.

the 2nd remotely executed shell script will execute a java programe on 2nd AIX machine

i had gone on some similar thread in this forum.... which includes ssh

http://bytes.com/forum/thread579549.html

i am from java background..

hope i could have some expert inputs..





Regards
ashutosh
  #2  
Old June 20th, 2008, 06:21 PM
micmast's Avatar
Familiar Sight
 
Join Date: Mar 2008
Location: Belgium
Posts: 132

re: Executing shell script remotely


I would use ssh, I'm sure you can use java to set up a ssh connection and then execute a command on the remote host. That would solve your problem I think
  #3  
Old June 21st, 2008, 01:57 AM
Nepomuk's Avatar
Moderator
 
Join Date: Aug 2007
Location: Germany
Posts: 2,468

re: Executing shell script remotely


Quote:
Originally Posted by micmast
I would use ssh, I'm sure you can use java to set up a ssh connection and then execute a command on the remote host. That would solve your problem I think
I agree, ssh sounds like a good idea. I searched a bit and found this implementation of ssh for Java, as sun doesn't seem to offer ssh itself. I also found this one, however it seems as if they only have examples, but no API.
If I'm not mistaken, both of those are published under the GPL, but I didn't have a close look, so better check yourself if it's anything you're planing to use for workrelated issues or similar.

Greetings,
Nepomuk
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
author index for Python Cookbook 2? Andrew Dalke answers 10 July 19th, 2005 12:26 AM
Importing Inventory Oleg answers 4 July 17th, 2005 09:18 AM