Executing shell script remotely

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashutoshrawat
    New Member
    • Jun 2008
    • 1

    #1

    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



    i am from java background..

    hope i could have some expert inputs..





    Regards
    ashutosh
  • micmast
    New Member
    • Mar 2008
    • 144

    #2
    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

    Comment

    • Nepomuk
      Recognized Expert Specialist
      • Aug 2007
      • 3111

      #3
      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

      Comment

      Working...