Hot Damn!
From The "Well Duh" Files: GNU screen is the greatest thing ever. I say this not because it can create virtually unlimited pseudoterminals for you, but because programs left running inside a screen session continue running even when the screen session is detached.
Those of you who live and die by GNU screen are shrugging your shoulders at my naïveté, and you are right to do so.
Check this shit out: inside a screen session, run "tcpserver -vPRHUl0 0 9999 /bin/date", and then detach the session with Ctrl-A Ctrl-D. A "netstat -naf inet" will reveal that tcpserver is still listening on *.9999. Test it out with "tcpcat 0 9999" and it will print the current date. (tcpserver and tcpcat are programs belonging to the ucspi-tcp package. Everyone should have these utilities on their servers.)
Reattach to screen by running "screen -r". tcpserver should have printed connection info regarding each of your uses of tcpcat.
There is almost no end to what one can do with a convenient TSR wrapper utility. I just wish I'd known about this sooner.
No comments:
Post a Comment