I\'m trying to execute a simple shell command and print the result on a web page but the results are empty. Below is one bit of code I found but nothing has worked thus far.
You're missing the -p option before the port number:
-p
$str = "ssh -p $port $username@$server $command";