> Am 22.12.2016 um 03:15 schrieb John_Tai <john_...@smics.com>: > > I wrote a script that checks path and calls the tool: > > echo "HERE: `hostname`" > env |grep -i ^path > which virtuoso > virtuoso > > This is the output: > > HERE: ibm038 > PATH=/usr/kerberos/bin:/tmp/210.1.pc.q:/tools/cadence/virtuoso/IC616.500.12_20150709/tools/dracula/bin:/tools/cadence/virtuoso/IC616.500.12_20150709/tools/dfII/bin:/tools/cadence/virtuoso/IC616.500.12_20150709/tools/bin:/tools/cadence/virtuoso/IC616.500.12_20150709/bin:/home/sge/sge8.1.9-1.el5/bin:/home/sge/sge8.1.9-1.el5/bin/lx-amd64:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/home/johnt/bin:.: > which: no virtuoso in > (/usr/kerberos/bin:/tmp/210.1.pc.q:/tools/cadence/virtuoso/IC616.500.12_20150709/tools/dracula/bin:/tools/cadence/virtuoso/IC616.500.12_20150709/tools/dfII/bin:/tools/cadence/virtuoso/IC616.500.12_20150709/tools/bin:/tools/cadence/virtuoso/IC616.500.12_20150709/bin:/home/sge/sge8.1.9-1.el5/bin:/home/sge/sge8.1.9-1.el5/bin/lx-amd64:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/home/johnt/bin:.:) > ./try.sh: line 8: virtuoso: command not found
Ok, so the PATH is there. But is the location shared? Can you check this in the job script at execution time: for LOCATION in ${PATH//:/ }; do if [ ! -d "${LOCATION}" -o ! -r "${LOCATION}" ]; then echo "$LOCATION: missing"; fi ; done -- Reuti > -----Original Message----- > From: Reuti [mailto:re...@staff.uni-marburg.de] > Sent: Wednesday, December 21, 2016 7:34 > To: John_Tai > Cc: users@gridengine.org > Subject: Re: [gridengine users] qsub EDA tool > > >> Am 21.12.2016 um 03:52 schrieb John_Tai <john_...@smics.com>: >> >> I am trying to submit an EDA tool, which is basically a binary. However the >> path for this tool needs to be set each time, it cannot be written into my >> ~/.cshrc. > > Maybe there are other files like ~/.tcshrc which are used instead? It depends > on some compile time options of tcsh for the order they are read. > > >> So for example before I start virtuoso, I will set its path: >> >> set path = ($VIRTUOSO_HOME/bin $path) >> >> Now I can type virtuoso and it will find the command. >> >> When I try to submit this to SGE, it cannot find the command, even >> though the path should be exported with qsub –V > > As I mentioned before: -V might get confusing results in a later point when > the job finally starts. > > >> # qsub -cwd -V -j y -b y virtuoso >> Your job 207 ("virtuoso") has been submitted # cat virtuoso.o207 >> -sh: virtuoso: command not found > > You can investigate this by submitting: > > $ qsub -V -b y env > > What's in the output file "env.o…"? > > -- Reuti > >> >> What am I missing? >> >> Thanks >> John >> This email (including its attachments, if any) may be confidential and >> proprietary information of SMIC, and intended only for the use of the named >> recipient(s) above. Any unauthorized use or disclosure of this email is >> strictly prohibited. If you are not the intended recipient(s), please notify >> the sender immediately and delete this email from your computer. >> >> _______________________________________________ >> users mailing list >> users@gridengine.org >> https://gridengine.org/mailman/listinfo/users > > ________________________________ > > This email (including its attachments, if any) may be confidential and > proprietary information of SMIC, and intended only for the use of the named > recipient(s) above. Any unauthorized use or disclosure of this email is > strictly prohibited. If you are not the intended recipient(s), please notify > the sender immediately and delete this email from your computer. > _______________________________________________ users mailing list users@gridengine.org https://gridengine.org/mailman/listinfo/users