Skip to content

Instantly share code, notes, and snippets.

@informationsea
Last active December 20, 2015 21:48
Show Gist options
  • Save informationsea/6199729 to your computer and use it in GitHub Desktop.
Save informationsea/6199729 to your computer and use it in GitHub Desktop.
tar for GridEngine
#!/bin/sh
#$ -S /bin/sh
#$ -cwd
if [ "$JOB_ID" ];then # in grid engine
tar "$@"
else
qsub -N "qtar-`basename $PWD`" -l s_vmem=0.5G,mem_req=0.5 $0 "$@"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment