Quick question that has been haunting me all day.. I have a bash script that includes this line:
nc -l 8044 | tee nc-output &
The output from netcat is never being written to nc-output. If I run that line outside of the bash script, it works.
nc -l 8044 > afile &
Also does not work, but works outside a bash script.
I need the ampersand there so I can run the process separately and continuing executing my batch script. Any suggestions would be great!