I have a python script that\'ll be checking a queue and performing an action on each item:
# checkqueue.py while True: check_queue() do_something()
I use this for my npm Process
#!/bin/bash for (( ; ; )) do date +"%T" echo Start Process cd /toFolder sudo process date +"%T" echo Crash sleep 1 done