Help for this page

Select Code to Download


  1. or download this
     
    #!/bin/bash
    HOST=$1
    ...
      yum install -y httpd
      echo Yum exited with status $?
    ENDSSH
    
  2. or download this
    #!/usr/bin/perl
    use v5.14;
    ...
    my($stdout, $stderr, $exit) = $ssh->cmd('ls -ltr');
    
    say $stdout;