script problem
2007-12-24 21:00:00
I am having a problem with a logging script we are runnning. It logs the
results of commands to a log file and to the screen. The problem is when
this log script is used to log the results of a command which itself starts
processes the script hangs. Below is a copy of a piece of the script
....
....
TEE=/usr/bin/tee
COMMAND="$COMMAND_LOCATION/.$COMMAND_NAME"
$COMMAND | $TEE -a ${LOG_DIR}/${LOG_FILE}
....
....
I think the problem is the fact that the tee command continues to try and
log the output of the created process (even though it has no output). Can
anyone think of a solution where the results of $COMMAND are logged but it
does not hang when $COMMAND creates a process.
Thanks,
Richard...
Comments
Got something to say?
You must be logged in to post a comment.

