1: #!/bin/sh 2: # Example 13 - generate some output to stdout 3: # and stderr, and exit with a non-zero status 4: 5: # Send a message to stderr, and another to stdout, 6: # Exit with status 99 7: 8: echo "This goes to stdout" 9: echo "This goes to stdout and has foo in the line" 10: echo "This goes to stderr" >&2 11: exit 99
last modified 22/03/2012 | Introduction | Table of Contents (frame/no frame) |
Printable (single file) |
© Dartmouth College |