Your srun command should work correctly. My guess is that you are getting a different shell when SLURM launches the job. Make sure that the first line of your script is:
#!/bin/sh This will ensure that you do not pick up a csh from your user defaults. ________________________________ From: Sa Li [[email protected]] Sent: Wednesday, April 10, 2013 10:33 AM To: slurm-dev Subject: [slurm-dev] question about passing arguments from commandline to script Hi, all I want to pass arguments from one shell script to another shell script, essentially passing arguments from commandline to shell. For example, this is my script #----- val1=$1 val2=$2 echo val1 echo val2 if I run ./myscript 100 100 It will print 100, 100 out. But if I run srun ./myscript 100 100 It will pop up error. How can I pass the arguments to scripts. thanks -- Sa Li Senior Research Developer www.pof.com<http://www.plentyoffish.com/> P: 778.838.1018 | AIM: [email protected]<mailto:[email protected]> | Skype: sa_li_cn | Fb: http://www.facebook.com/sa.li.cn STRICTLY PERSONAL AND CONFIDENTIAL. This email and any files transmitted with it may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copie
