[torqueusers] relative path problem

Axel Kohlmeyer akohlmey at cmm.chem.upenn.edu
Thu Dec 30 09:48:15 MST 2010


On Wed, Dec 29, 2010 at 3:31 PM, Mahmood Naderan <nt_mahmood at yahoo.com> wrote:
> Hi,
> I have installed torque and maui andthey work with simple commands (like
> echo "sleep 30" | qsub) however, when I submit a script (qsub -q qname -l
> ncpus=1 torscript.sh) that has relative paths I get an error.
>
> mahmood at localhost:tools$ ls
> torscript.sh       flex    ....
> mahmood at localhost:tools$ cat torscript.sh
> #!/bin/bash
> ./flex my_input
>
> I get this error:
> mahmood at localhost:tools$ cat torscript.sh.e26
> /var/spool/pbs/mom_priv/jobs/26.qname.SC: line 2: ./flex: No such file or
> directory
>
> So what should I do? thanks,

have you read the documentation?

job scripts are always executed in the _home_
directory of the the submit user. there are very
good reasons to do so.

the submit directory is passed to the submit
script in the environment variable PBS_O_WORKDIR.

axel.




> // Naderan *Mahmood;
>
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
>
>



-- 
Dr. Axel Kohlmeyer    akohlmey at gmail.com
http://sites.google.com/site/akohlmey/

Institute for Computational Molecular Science
Temple University, Philadelphia PA, USA.


More information about the torqueusers mailing list