- or download this
$connection->send("$cmd\r");
if(length($cmd) > "25")
...
$connection->expect($timeout, $prompt);
$data = $connection->exp_before();
print "Command DATA: \n$data\n";
- or download this
cat /etc/testfile | awk '{ FS = ":" ; print $1 }' | grep -v '^[#*]' |
+grep -v '^$'
- or download this
":" ; print $1 }' | grep -v '^[#*]' | grep -v '^$' <
Command output 1
(... SNIP ...)Command output xx