By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,666 Members | 1,909 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,666 IT Pros & Developers. It's quick & easy.

Executing shell script remotely

P: 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
Jun 20 '08 #1
Share this Question
Share on Google+
2 Replies


micmast
100+
P: 144
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
Jun 20 '08 #2

Nepomuk
Expert 2.5K+
P: 3,112
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
Jun 21 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.