Help for this page

Select Code to Download


  1. or download this
    print "echo $?";
    # $ssh->exec("echo $?\n");
    
  2. or download this
    print 'echo $?';
    # $ssh->exec('echo $?' . "\n")
    
  3. or download this
    $ssh->exec('your-program; echo $?');
    
  4. 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 $?