[torqueusers] Batch not running
Gus Correa
gus at ldeo.columbia.edu
Wed Sep 14 11:29:50 MDT 2011
Hi Dave
Did you make dn_test.sh executable?
(chmod u+x dn_test.sh)
Did you enable scheduling?
(qmgr -c 'set server scheduling = True')
Gus Correa
Zarnoch, Dave wrote:
> Hello folks,
>
> New to Torque, used to run NQS….
>
> Concerning Torque…
>
> I have a small script:
>
> $ more dn_test.sh
>
> #!/bin/sh
>
> #
>
> PATH=/bin:/usr/bin:/usr/local/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11
>
> :/sbin:.
>
> export PATH
>
> DATE=`date +%H%M`
>
> echo "Hello"
>
> touch /tmp/dn_test_${DATE}
>
> sleep 90
>
>
>
> When I submit the script:
>
>
>
> qsub -V -l nodes=1 -q dn dn_test.sh
>
>
>
> It runs fine.
>
>
>
> But I need to run batch…
>
>
>
> I created a text file “dn_test.txt”
>
>
>
> That contains:
>
>
>
> /home/zarnocda/torque/scripts_test/dn_test.sh
>
>
>
> When I run:
>
>
>
> qsub -V -l nodes=1 –q dn dn_test.txt
>
>
>
> It appears to process the file:
>
> qstat –s
>
> *Job id Name User Time Use S
> Queue*
>
> *------------------------- ---------------- --------------- -------- -
> -----*
>
> *7592.usphl1ora002.amer dn_test.txt zarnocda 0 R
> dn *
>
>
>
> But it doesn’t excute the script within:
>
> /home/zarnocda/torque/scripts_test/dn_test.sh
>
>
>
> Any help!
>
>
>
> Thanks!
>
>
>
> Dave
>
> Dave Zarnoch
>
> UNIX Systems Administration
>
> (215)200-0911
>
> Dave.Zarnoch at sykes.com
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
More information about the torqueusers
mailing list