Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
      
    ...
     
    #close the ssh session
    undef $ssh;
    
  2. or download this
    # open_ex: ['ssh','-O','check','-T','-S','/root/.libnet-openssh-perl/u
    +ser-10.253.10.10-25248-962213','-l','user','10.253.10.10','--']
    # _waitpid(25251) => pid: 25251, rc: 0, err:
    ...
    Couldn't run remote command: child exited with code 255 at script.pl l
    +ine 42.
    # open_ex: ['ssh','-O','exit','-T','-S','/root/.libnet-openssh-perl/us
    +er-10.253.10.10-25248-962213','-l','user','10.253.10.10','--']
    # _waitpid(25253) => pid: 25253, rc: 0, err: