Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    system_memory=`cat /proc/meminfo |grep -w MemTotal |awk '{print $2}'`
    total_system_memory=$(echo "$system_memory * 1024" | bc -l)
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
      my $command = "`cat /proc/meminfo |grep -w MemTotal |awk '{print $2}
    +'`";--->line 9
    
    ssh('user@hostname', $command);
    
  3. or download this
    Use of uninitialized value in concatenation (.) or string at ./ssh.pl 
    +line 9.
    ssh: hostname: Name or service not known
    
  4. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    ssh("$user\@$hostname", "$command");
    
    Host key verification failed.