#!/bin/bash # define interval(seconds) after which you want the script to wake up interval=600 # start infinite loop while [ 1 ] do # first sleep interval seconds sleep ${interval} # next check condition on which you want VASP to stop ./check-methanol.py done