Help for this page

Select Code to Download


  1. or download this
    my @df_arr = $ssh->capture("df -k /home/ | tail -1") or die "Unable to
    + run command\n";
    print "$s:  Disk space /home/ = $df_arr[3] \n";
    
  2. or download this
    sub disk_space {
        my( $ssh, $dir ) = @_;
    ...
    }
    
    disk_space( $ssh, '/home/' );