Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: In Linux how to kill the Prompt

by atcroft (Abbot)
on Feb 19, 2015 at 06:25 UTC ( [id://1117186]=note: print w/replies, xml ) Need Help??


in reply to In Linux how to kill the Prompt

It sounds like what you are wanting may be to use Expect or Net::SSH::Expect to log in via ssh into the other machine and kick off the process. Both of the modules mentioned can be used to write code to log into a remote system and execute commands.

Hope that helps.

Replies are listed 'Best First'.
Re^2: In Linux how to kill the Prompt
by vinoth.ree (Monsignor) on Feb 19, 2015 at 07:47 UTC

    Is it possible to run command as background job on remote machine using this module?

    I can see its possible using Net::OpenSSH which is documented as, Running detached remote processes

      $ssh->system("nohup $long_running_command &");

    All is well. I learn by answering your questions...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1117186]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-24 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found