Connecting Tech Pros Worldwide Help | Site Map

Executing shell script remotely

 
LinkBack Thread Tools Search this Thread
  #1  
Old June 20th, 2008, 10:26 AM
Newbie
 
Join Date: Jun 2008
Posts: 1
Default Executing shell script remotely

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
Reply
  #2  
Old June 20th, 2008, 05:21 PM
micmast's Avatar
Member
 
Join Date: Mar 2008
Location: Belgium
Posts: 117
Default

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
Reply
  #3  
Old June 21st, 2008, 12:57 AM
Nepomuk's Avatar
Moderator
 
Join Date: Aug 2007
Location: Germany
Age: 22
Posts: 2,460
Default

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
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.