Run node.js application in the background as service easily

Simplest way I found is too install the node.js application named " forever " Just install forever in your server like: sudo npm install -g forever Then you can run your application as service like (inside your actual node application): forever start bot.js To kill the service: Show the forver...

Schedule command using at command

Creating commands Type in your terminal: at [schedule] e.g.: at 10:30 am Then inside the at command you can type in your commands like: at> php /var/www/html/yii-application/yii job/my-custom-job param1 param2 Then when you are done adding commands, presst CTRL+D Deleting commands If you don't know...

Run SSH command in background

Do you have to run a big command that requires 30 minutes, 1 hour, 2 hours or 6 hours? Unfortunately SSH connections times out. Here's a simple trick on how to run a ssh command in the background so you can run your command and maybe sleep for a while or continue with your life. In your terminal,...