In coordination with the ACCESS team, XSEDE has paused the processing of Startup, Education, and other allocation requests from August 17-31. This pause will ensure that no requests are lost while we are making infrastructure updates behind the scenes and handing things over to ACCESS. If you have questions, contact help@xsede.org. The ACCESS team will resume taking allocation requests on September 1 via https://access-ci.org/.

The discussion forums in the XSEDE User Portal are for users to share experiences, questions, and comments with other users and XSEDE staff. Visitors are welcome to browse and search, but you must login to contribute to the forums. While XSEDE staff monitor the lists, XSEDE does not guarantee that questions will be answered. Please note that the forums are not a replacement for formal support or bug reporting procedures through the XSEDE Help Desk. You must be logged in to post to the user forums.

« Back to General Discussion

RE: shell script variable substitution and dplace

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hi,

I've just introduced dplace into my batch job, a tcsh script, and am seeing a problem. Here is the fragment of the script which spawns a veePSC instance. Note that veePSC reads from the standard input and sends its standard output to the null device:
dplace -n veePSC -c -d ${iCPU} ./veePSC < ${Subject}_${Session}/P/${LOC}_${j}.pro >& /dev/null &
and here is the corresponding output to the .o file:
[1] 3759321
[1] Exit 1
dplace -n veePSC -c -d 6./veePSC < ${Subject}_${Session}/P/${LOC}_${j}.pro >& ...

Notice that variable iCPU is expanded to "6" but the other variables are not expanded, i.e. Subject, Session, LOC, and j. So this instance of veePSC fails to find its input file. An earlier version of this batch script uses this more complex command without error on Blacklight at the Pittsburgh Supercomputing Center:
echo "pf; ${Subject}_${Session}/P/${LOC}_${j}.pro; ex;" | tr ";" "\n" | tr -d " " | ./veePSC >& /dev/null &

I've attached the script. You can find the code at line #211 .

Your thoughts would be welcome.

Don

Don Krieger, Ph.D.
Department of Neurological Surgery
University of Pittsburgh

RE: shell script variable substitution and dplace
Answer
7/5/12 8:28 PM as a reply to Donald Nathan Krieger.
Dr. Krieger,

I understand that this question has been answered by PSC consultants. Should you have any other problems, please let us know.

Tom Maiden,
XSEDE User Services