User prologue and epilogue scripts for torque-based clusters.
- Clone this repository and make both the prologue and epilogue scripts executable
git clone https://github.com/sgblanch/pbs-scripts.git "$HOME/.pbs-scripts"
chmod 750 "$HOME/.pbs-scripts/"{prologue,epilogue}.sh- Alias the
qsubcommand in your.bashrcfile so the prologue and epilogue scripts are automatically added to all jobs submitted to the cluster.
if command -v qsub > /dev/null 2>&1 && \
[[ -x "${HOME}/.pbs-scripts/prologue.sh" ]] && \
[[ -x "${HOME}/.pbs-scripts/epilogue.sh" ]]; then
alias qsub="qsub -l prologue=${HOME}/.pbs-scripts/prologue.sh -l epilogue=${HOME}/.pbs-scripts/epilogue.sh"
fiThe hpcusage script provides a summary of a cluster's queues listing running and queued job counts by user. To use copy it to a directory on your PATH (e.g. $HOME/bin) and make it executable.