#!/bin/bash export NVM_DIR="/home/gz/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm nvm use node while true; do echo starting node... $(date) node index.js sleep 3 done