#!/bin/bash trap 'echo Control-C trap caught; exit 1' 2 while true do qlogin -l mem_free=$1 done