Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to submit the following very simple script to my cluster:

#!/bin/sh
#PBS -l nodes=3:ppn=8,walltime=00:01:00
#PBS -M eamorr@mydomain.com
#PBS -j oe
#PBS -m bae
#PBS -N geophysics 

pbsdsh date
pbsdsh echo $PBS_VNODENUM

And here is the output:

Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
Wed Oct 24 12:52:08 IST 2012
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

Surely instead of a list of zeros, I should be getting 0-23???

Really stuck on this and thought I'd ask the community...

share|improve this question
    
Question probably has to do with en.wikipedia.org/wiki/TORQUE_Resource_Manager . –  Journeyman Geek Oct 24 '12 at 12:03

1 Answer 1

I found this thread that gives an example of something like this (adapted to your special needs):

pbsdsh -s bash -c 'echo $PBS_VNODENUM'

share|improve this answer
2  
Can you put the example in your answer so this is still useful when that link eventually goes dead? –  ϺОŞΣŞ Sep 30 '13 at 15:04
    
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. –  Dave M Sep 30 '13 at 16:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.