2
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!
Thanks!
One thing that comes to mind: does your script have a different working directory than you expect? – Mikey Boldt – 2012-06-19T17:02:52.507
I don't think that is the problem. The script is creating an empty file on each run.. just nothing written to it. – Gregorio Di Stefano – 2012-06-19T17:04:09.587