I want to use netcat to dump a number of blocks of strings to a file. I've been running this in my linux terminal and everything works very well until I try to detach my command line. If I run my command as a detached session netcat stops after the first round of strings.
In short, this works:
nc localhost 3000 > test.txt
But this doesn't:
nc localhost 3000 > test.txt &  9040 max@starbuck ncats]$ + Stopped nc localhost 3000 > test.txt
I suppose this has to do with reaching the end of a send on the server side, but I don't know enough about netcat to tell it, "hey! stay awake until your connection drops"