When downloading a large file I quite often do:
while ls -la <filename>; do sleep 5; done
And then just ctrl+c when I'm done (or if ls
returns non-zero). It's similar to the watch
program but it uses the shell instead, so it works on platforms without watch
.
Another useful tool is netcat, or nc
. If you do:
nc -l -p 9100 > printjob.prn
Then you can set up a printer on another computer but instead use the IP address of the computer running netcat. When the print job is sent, it is received by the computer running netcat and dumped into printjob.prn
.