#!/bin/bash # Elementary script to reserve a node by putting in a username to reservations.txt # which is world writable. # # Yes, I know, I know, don't say it. Please don't say it. # # If this method works with Torque I'll write a C program that can be setuid root # then we can get around the issue # echo howdy | mail -s "ran on node $HOSTNAME" $USER@nrao.edu echo $1 > /var/reservations.txt