zomux / lanmt-ebm

lanmt ebm
11 stars 1 forks source link

Snippet: ABCI job launcher #14

Open zomux opened 4 years ago

zomux commented 4 years ago
#!/bin/bash

date_token=$(date +"%Y%m%d_%H-%M-%S")
logpath=$HOME/jobs/${date_token}.txt

echo "[Run] $@" > $logpath
cmd="qsub -g gcb50249 -l rt_F=4 -l h_rt=30:00:00 -j y -o $logpath $@"
stamp=$(date +%s)
eval $cmd
echo -e "${stamp}\t${cmd}\t${logpath}\n" >> $HOME/abci_reborn.txt
tail -f $logpath
qstat