Like this?
#!/bin/sh
jid=`sbatch -o /dev/null --array=1-2 sleepme 30|awk '{print $4}'`
while :
do
t=`squeue --noheader -o%t -j`
if [ ! -z "$t" ]; then
echo "array $jid still around..."
sleep 2
else
break
fi
done
On 07/17/2014 01:00 AM, Julien Collas wrote:
Hi, How would you do to run an interactive job array ? By interactive, I mean that the command only exit at the end of the array ? Regards, Julien
--
Thanks,
/David/Bigagli
www.schedmd.com
