Remote command execution

Discussion in 'Perl Misc' started by be_tnt, Apr 12, 2005.

  1. be_tnt

    be_tnt Guest

    Hello,

    Is it possible with Perl to execute a command on a remote system?

    Thx!
    be_tnt, Apr 12, 2005
    #1
    1. Advertising

  2. be_tnt

    phaylon Guest

    be_tnt wrote:

    > Is it possible with Perl to execute a command on a remote system?


    Yes[1].

    > Thx!


    You're welcome.


    p

    [1] More Details? More Details! or have a look at CPAN on search.cpan.org

    --
    http://www.dunkelheit.at/
    thou shallst fear...
    phaylon, Apr 12, 2005
    #2
    1. Advertising

  3. be_tnt

    Guest

    read about ssh , then do
    system("ssh ....");
    in perl
    , Apr 12, 2005
    #3
  4. be_tnt wrote:

    > Hello,
    >
    > Is it possible with Perl to execute a command on a remote system?
    >
    > Thx!


    Provided the remote system is running a service to execute commands
    submitted remotely, yes. (If not, it'll be difficult for anything to run
    commands remotely, unless you can contact the machine via magic
    telepathy). Exactly how you might do this would depend on what
    service the system is running.

    --
    Christopher Mattern

    "Which one you figure tracked us?"
    "The ugly one, sir."
    "...Could you be more specific?"
    Chris Mattern, Apr 12, 2005
    #4
  5. wrote:

    > read about ssh , then do
    > system("ssh ....");
    > in perl


    One: He's told us nothing about the remote system. If it's not running
    sshd, ssh isn't gonna do him much good.

    Two: Why screw around with system() when you have Net::SSH::perl?
    --
    Christopher Mattern

    "Which one you figure tracked us?"
    "The ugly one, sir."
    "...Could you be more specific?"
    Chris Mattern, Apr 12, 2005
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sandiyan

    Java books and remote execution

    sandiyan, Mar 2, 2004, in forum: Java
    Replies:
    1
    Views:
    315
    TechBookReport
    Mar 3, 2004
  2. freeposte

    Client/Server remote execution

    freeposte, Nov 4, 2005, in forum: Java
    Replies:
    3
    Views:
    611
    Roedy Green
    Nov 5, 2005
  3. Replies:
    2
    Views:
    299
  4. Tim Golden
    Replies:
    1
    Views:
    295
  5. =?Utf-8?B?TWlrZSBE?=

    Remote execution from web

    =?Utf-8?B?TWlrZSBE?=, Aug 10, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    298
    Mark Rae [MVP]
    Aug 10, 2007
Loading...

Share This Page