It's even worse than it appears.
Saturday October 12, 2019; 10:02 AM EDT
  • For an application I'm developing I need to run it in the background, yet easily stop and relaunch it. So this is what I do. #
    • At the command line type nohup node app.js & and press Return. #
    • You can see the output of the app by pressing Ctl-C then tail -f nohup.out. It creates this file in the directory the app was run from. #
    • To kill the node process and any other node processes it might have launched, enter killall -i node. The -i flag means that it will confirm before killing each process. #
  • I put these notes in my blog so I can find them again, easily, and don't have to figure it out ever time. Also so people who know more than I do about this topic can tell me better ways to do this. :orange:#
  • As an experiment, I'm mirroring this post over on GitHub.#

© 1994-2019 Dave Winer.

Last update: Saturday October 12, 2019; 4:50 PM EDT.

You know those obnoxious sites that pop up dialogs when they think you're about to leave, asking you to subscribe to their email newsletter? Well that won't do for Scripting News readers who are a discerning lot, very loyal, but that wouldn't last long if I did rude stuff like that. So here I am at the bottom of the page quietly encouraging you to sign up for the nightly email. It's got everything from the previous day on Scripting, plus the contents of the linkblog and who knows what else we'll get in there. People really love it. I wish I had done it sooner. And every email has an unsub link so if you want to get out, you can, easily -- no questions asked, and no follow-ups. Go ahead and do it, you won't be sorry! :-)