Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use Net::SSH::Perl;
    ...
    
    my $remoteCmd = `ssh myserverid.company.com -l myuid -i /home/myuid/.s
    +sh/authorized_keys top`;
    
  2. or download this
    #!/usr/bin/perl -w
    use IO::Handle;
    my $handle = IO::Handle->new;
    my $pid = open($handle, 'command & |') or die $!;
    print $pid;