Listens for arrival and end of SLURM Jobs on a computer cluster. When a job arrives or finishes, it sends a push notification using pushover.
Move jobListener.sh and push.sh to ~/bin/
git clone https://github.com/wutMax/jobListener
cp -i jobListener.sh push.sh ~/bin/
The token and userID in push.sh need to be added.
The script will run for ~ 1 week, but the timer will reset if it receives a job.
The best way to run the script is to run it in a GNU screen session, so that the status can be accessed.
Alternatively, you can nohup the process:
nohup bash jobListener.sh >> ~/jobListenerLog.out &