Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

execute remote perl script via ssh

by vinoth.ree (Monsignor)
on Jul 26, 2020 at 09:47 UTC ( [id://11119825]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ssh.exe username@xxx.xxx.xxx.xxx /fullpath/check_user_exists.pl userna
    +me
    
  2. or download this
    sub executeCommand{
      my $command = join ' ', @_;
    ...
    
    my @src_cmd = ('ssh.exe ', $ssh_user.'@'.$hostname ." /fullpath/check_
    +user_exists.pl " . "$user");
    my ($status, $output) = &executeCommand(@src_cmd);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-29 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found