Life after closing your terminal window
In the past posts, I shared a lot of nodejs code to run mostly your code unattended. A few commenters pointed out that the data stops getting recorded when they kill their remote session. There are multiple ways to skin this type of cat. Here’s what you do in practical terms. Tools Screen Tmux nohup forever (specific to nodejs) cheap trick Screen it has been long on the Linux scene, it allows you to interact with your remote session, resume from where it is, or you have left it. It’s not a piece of cake to use if you have not educated yourself about it. This quick (2 min) tutorial gives you a quick jumpstart about it. However, if you do want to use, take a look at this quick reference . It doesn’t come installed with Jesse on Rasbian use the following to install it sudo apt-get install screen to execute your code screen -d -m node --mycodefile.js Screen has been around for a long time, less seasoned but with many more other advantages is Tmux . I prefe