- or download this
print "echo $?";
# $ssh->exec("echo $?\n");
- or download this
print 'echo $?';
# $ssh->exec('echo $?' . "\n")
- or download this
$ssh->exec('your-program; echo $?');
- or download this
$ssh->exec('./shellscript-that-runs-your-program-and-then-outputs-doll
+ar-question-mark.sh');
# where shellscript-that-runs-your-program-and-then-outputs-dollar-que
+stion-mark.sh
...
# #!/bin/sh
# your-program
# echo $?