Code: Select all
wvdial ${WVISP} ${WVPIN} ${WVAPN} ${WVWRLS} &> /tmp/pupdial.log &
When I try to achieve a similar thing for the volume monitor, the output is full-buffered i.e. the output is not flushed after every line. Data gets written only when it has written about 1kb. None of the following work like I want.
Code: Select all
pup-volume-monitor &> "$LOG_FILE" #forewards stderr only
Code: Select all
pup-volume-monitor 2>&1 > "$LOG_FILE" #forewards stderr only
Code: Select all
pup-volume-monitor 2>&1 | cat > "$LOG_FILE" #full buffered output
Code: Select all
pup-volume-monitor 2>&1 | grep --line-buffered "" > "$LOG_FILE" #full buffered output