Paul wrote:
Let us work with this one.
somecommand >> "$LOGFILE" 2>&1
That says to redirect "stderr" to "stdout",
then redirect "stdout" additively to the $LOGFILE.
Nowhere does it mention anything about also
including a copy on Alans Screen :-)
How about if we try this ?
somecommand 2>&1 | tee >> "$LOGFILE"
I think you need:
somecommand 2>&1 | tee --append "$LOGFILE"
Otherwise you're redirecting the copy that tee sends to stdout to the
file instead (so you still won't get any output on the terminal), and
not giving tee any files to copy it to.
--
Mark.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 08:03:46 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
1 files (1,366K bytes) |
| Messages: | 264,936 |