#!/bin/sh set -e ID=`./gpu_lock.py --id` echo 'now imagine a long run using id' $ID while true; do sleep 1 done