My question is simple : I have a program written in nodejs and want to run it in an infinite loop in the language bash, is this possible?
You can run your app in the background like so
$ node app.js &
If you are looking to keep a running node process, though, I would look into the forever package.
$ sudo npm install forever -g $ cd /path/to/your/project $ forever start app.js