Help for this page

Select Code to Download


  1. or download this
    (/bin/foo ; echo $? >RES)| tee -a $LOGFILE
    export ERR=$(cat RES)
    
  2. or download this
      $ cat test
      #!/bin/bash
    ...
      1 0
    
      # (so ${PIPESTATUS[0]} should give you the return of the first comma
    +nd).