Hello guys<div><br></div><div>I got a problem here, ill be as direct as i can be.</div><div><br></div><div>I got 4 nodes, on node 0 there&#39;s torque/maui server and a mom, and on the 1-3 theres just the torque mom.</div>

<div><br></div><div>my problem is that when i do &quot;exports&quot; as a user using a ssh login i get paths taht i dont get when i launch either an interactive job or a batch job using qsub:</div><div>As a regular ssh login with a non-root user:</div>

<div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[rroman@zarate-0 ~]$ export                                                                                                                                                    <br>

declare -x BASHERRECE=&quot;bashrc&quot;                                                                                                                                                 <br>declare -x BASHLOCAL=&quot;.bashrc&quot;                                                                                                                                                 <br>

declare -x G_BROKEN_FILENAMES=&quot;1&quot;                                                                                                                                              <br>declare -x HISTSIZE=&quot;1000&quot;                                                                                                                                                     <br>

declare -x HOME=&quot;/home/rroman&quot;                                                                                                                                                 <br>declare -x HOSTNAME=&quot;zarate-0.cnca&quot;                                                                                                                                            <br>

declare -x KDEDIRS=&quot;/usr&quot;                                                                                                                                                      <br>declare -x KDE_IS_PRELINKED=&quot;1&quot;                                                                                                                                                <br>

declare -x KMIX_PULSEAUDIO_DISABLE=&quot;1&quot;                                                                                                                                         <br>declare -x LANG=&quot;en_US.UTF-8&quot;                                                                                                                                                  <br>

declare -x LD_LIBRARY_PATH=&quot;/usr/local/lib/:&quot;                                                                                                                                  <br>declare -x LESSOPEN=&quot;|/usr/bin/lesspipe.sh %s&quot;                                                                                                                                 <br>

declare -x LOGNAME=&quot;rroman&quot;                                                                                                                                                    <br>declare -x LS_COLORS=&quot;rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;4<br>

2:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz<br>=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.<br>

rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01<br>;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*<br>

.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;3<br>5:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra<br>

=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:&quot;                                                                                                          <br>declare -x MAIL=&quot;/var/spool/mail/rroman&quot;                                                                                                                                       <br>

declare -x OLDPWD                                                                                                                                                              <br>declare -x PATH=&quot;/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/maui/bin:/usr/local/maui/sbin<br>

:/usr/local/sbin:/usr/local/bin:/home/rroman/bin&quot;                                                                                                                              <br>declare -x PERFIL=&quot;profile&quot;                                                                                                                                                    <br>

declare -x PWD=&quot;/home/rroman&quot;                                                                                                                                                  <br>declare -x QTDIR=&quot;/usr/lib/qt-3.3&quot;                                                                                                                                             <br>

declare -x QTINC=&quot;/usr/lib/qt-3.3/include&quot;                                                                                                                                     <br>declare -x QTLIB=&quot;/usr/lib/qt-3.3/lib&quot;                                                                                                                                         <br>

declare -x SHELL=&quot;/bin/bash&quot;                                                                                                                                                   <br>declare -x SHLVL=&quot;1&quot;                                                                                                                                                           <br>

declare -x SSH_CLIENT=&quot;192.168.1.50 64228 22&quot;                                                                                                                                  <br>declare -x SSH_CONNECTION=&quot;192.168.1.50 64228 192.168.1.200 22&quot;                                                                                                                <br>

declare -x SSH_TTY=&quot;/dev/pts/1&quot;                                                                                                                                                <br>declare -x TERM=&quot;cygwin&quot;                                                                                                                                                       <br>

declare -x TZ=&quot;America/Costa_Rica&quot;                                                                                                                                             <br>declare -x USER=&quot;rroman&quot;                                                                                                                                                       </blockquote>

<div><br></div><div>Please note the BASHERRECE, BASHLOCAL and PERFIL variables. these are defined in /etc/bashrc, /home/$USER/.bashrc and /etc/profile, also check the PATH, it has /usr/local/bin</div></div><div><br></div>

<div>now with a interactive job (or batch, the results are the same) using qsub:</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

[rroman@zarate-0 jobs]$ qsub -q batch ./a.sh                                                                                                                                   <br>25.zarate-0.cnca                                                                                                                                                               <br>

[rroman@zarate-0 jobs]$ cat a.sh.o                                                                                                                                             <br>a.sh.o12  a.sh.o14  a.sh.o15  a.sh.o21  a.sh.o25                                                                                                                               <br>

[rroman@zarate-0 jobs]$ cat a.sh.o25                                                                                                                                                                    <br>uid=500(rroman) gid=503(cluster) groups=503(cluster)                                                                                                                           <br>

Mon Aug  6 16:49:44 CST 2012                                                                                                                                                   <br>zarate-3.cnca                                                                                                                                                                  <br>

/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/bin:/usr/bin:/local/sbin:/usr/local/sbin:/usr/sbin:/sbin:/home/rroman/bin                                            <br>declare -x BASHLOCAL=&quot;.bashrc&quot;                                                                                                                                                 <br>

declare -x ENVIRONMENT=&quot;BATCH&quot;                                                                                                                                                 <br>declare -x G_BROKEN_FILENAMES=&quot;1&quot;                                                                                                                                              <br>

declare -x HISTSIZE=&quot;1000&quot;                                                                                                                                                     <br>declare -x HOME=&quot;/home/rroman&quot;                                                                                                                                                 <br>

declare -x HOSTNAME=&quot;zarate-3.cnca&quot;                                                                                                                                            <br>declare -x KDEDIRS=&quot;/usr&quot;                                                                                                                                                      <br>

declare -x KDE_IS_PRELINKED=&quot;1&quot;                                                                                                                                                <br>declare -x KMIX_PULSEAUDIO_DISABLE=&quot;1&quot;                                                                                                                                         <br>

declare -x LANG=&quot;C&quot;                                                                                                                                                            <br>declare -x LESSOPEN=&quot;|/usr/bin/lesspipe.sh %s&quot;                                                                                                                                 <br>

declare -x LOGNAME=&quot;rroman&quot;                                                                                                                                                    <br>declare -x MAIL=&quot;/var/spool/mail/rroman&quot;                                                                                                                                       <br>

declare -x OLDPWD                                                                                                                                                              <br>declare -x PATH=&quot;/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/bin:/usr/bin:/local/sbin:/usr/local/sbin:/usr/sbin:/sbin:/home/rroman/bin&quot;                          <br>

declare -x PBS_ENVIRONMENT=&quot;PBS_BATCH&quot;                                                                                                                                         <br>declare -x PBS_JOBCOOKIE=&quot;D6AD4C58275CD48820987209370F61CA&quot;                                                                                                                    <br>

declare -x PBS_JOBID=&quot;25.zarate-0.cnca&quot;                                                                                                                                        <br>declare -x PBS_JOBNAME=&quot;a.sh&quot;                                                                                                                                                  <br>

declare -x PBS_MOMPORT=&quot;15003&quot;                                                                                                                                                 <br>declare -x PBS_NODEFILE=&quot;/var/torque/aux//25.zarate-0.cnca&quot;                                                                                                                    <br>

declare -x PBS_NODENUM=&quot;0&quot;                                                                                                                                                     <br>declare -x PBS_O_HOME=&quot;/home/rroman&quot;                                                                                                                                           <br>

declare -x PBS_O_HOST=&quot;zarate-0.cnca&quot;                                                                                                                                          <br>declare -x PBS_O_LANG=&quot;en_US.UTF-8&quot;                                                                                                                                            <br>

declare -x PBS_O_LOGNAME=&quot;rroman&quot;                                                                                                                                              <br>declare -x PBS_O_MAIL=&quot;/var/spool/mail/rroman&quot;                                                                                                                                 <br>

declare -x PBS_O_PATH=&quot;/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/maui/bin:/usr/local/maui/sbin:/usr/local/sbin:/usr/local/bin:/home/rroman/bin&quot;                                                                                                                        <br>

declare -x PBS_O_QUEUE=&quot;batch&quot;                                                                                                                                                 <br>declare -x PBS_O_SHELL=&quot;/bin/bash&quot;                                                                                                                                             <br>

declare -x PBS_O_TZ=&quot;America/Costa_Rica&quot;                                                                                                                                       <br>declare -x PBS_O_WORKDIR=&quot;/home/rroman/jobs&quot;                                                                                                                                   <br>

declare -x PBS_QUEUE=&quot;batch&quot;                                                                                                                                                   <br>declare -x PBS_TASKNUM=&quot;1&quot;                                                                                                                                                     <br>

declare -x PBS_VNODENUM=&quot;0&quot;                                                                                                                                                    <br>declare -x PWD=&quot;/home/rroman&quot;                                                                                                                                                  <br>

declare -x QTDIR=&quot;/usr/lib/qt-3.3&quot;                                                                                                                                             <br>declare -x QTINC=&quot;/usr/lib/qt-3.3/include&quot;                                                                                                                                     <br>

declare -x QTLIB=&quot;/usr/lib/qt-3.3/lib&quot;                                                                                                                                         <br>declare -x SHELL=&quot;/bin/bash&quot;                                                                                                                                                   <br>

declare -x SHLVL=&quot;2&quot;                                                                                                                                                           <br>declare -x USER=&quot;rroman&quot;                                                                                                                                                       <br>

[rroman@zarate-0 jobs]$                                                                                                                                                        </blockquote></div><div><br></div><div>See that there is no BASHERRECE or PERFIL. And the paths are different.</div>

<div><br></div><div>My problem is taht the mpicc is in /usr/local/bin and i need it in the pbs jobs, and i would really like NOT to add that path in the pbs jobs scripts, so i need to make it default but i dont know why it doenst work...</div>

<div>Check both paths in a normal login and with an interactive job:</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

[rroman@zarate-0 jobs]$ echo $PATH                                                                                                                                             <br>/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/maui/bin:/usr/local/maui/sbin:/usr/local/sbin:/usr/local/bin:/home/rroman/bin                                                                                                                                                <br>

[rroman@zarate-0 jobs]$ qsub -I -q batch                                                                                                                                       <br>qsub: waiting for job 27.zarate-0.cnca to start                                                                                                                                <br>

eqsub: job 27.zarate-0.cnca ready                                                                                                                                              <br>                                                                                                                                                                    <br>

[rroman@zarate-3 ~]$ echo $PATH                                                                                                                                                <br>/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/bin:/usr/bin:/local/sbin:/usr/local/sbin:/usr/sbin:/sbin:/home/rroman/bin                                            </blockquote>

</div><div><br></div><div><br></div><div>Im using centos 6, torque 2.1.10 and mayu 3.3.1</div><div><br></div><div>SO FINALLY THE QUESTIONS:</div><div><br></div><div>1. Which scripts are run when i launch a PBS job? (/etc/bashrc? /etc/profile.d/*?)</div>

<div>2. how can i add this /usr/local/bin to the path of all pbs jobs?</div><div><br></div><div>thanks. If more info is needed please point it out! :)</div><div><br></div><div>-ricardo</div><div><br></div>