Mac OS X Command Line: Start a process and pick it up later

I can't believe I've only just discovered the gnu screen command. You want to kick off a long running command line process and come back to it later? Like so:

  • Open a Terminal window
  • Type screen
  • Type ls -R /
  • Quit Terminal, and hum to yourself for a few seconds
  • Open a new Terminal window and type screen -R

Now that's what I call magic.

It survives logouts and is of course an essential for working with remote or cloud machines over ssh; when your network connection fails you can log back in and carry on. man screen will tell you more, although so will https://www.bing.com/search?q=linux+screen

Mac OS X Command Line: Start a process a…

by Chris F Carroll read it in 1 min
0