doing an echo gives following: >: echo $GLOBUS_LOCATION /opt/globus
which is the correct location of globus. -----Original Message----- From: Jim Basney [mailto:jbas...@ncsa.uiuc.edu] Sent: Fri 10/9/2009 7:04 PM To: Muhammad Sarwar Cc: gt-user@lists.globus.org Subject: Re: [gt-user] globus-job-run: line 24: /libexec/globus-script-initializer: No such file or directory The GLOBUS_LOCATION environment variable isn't set, so the following line in the globus-job-run script . ${GLOBUS_LOCATION}/libexec/globus-script-initializer turns into . /libexec/globus-script-initializer causing the "No such file or directory" error. Muhammad Sarwar wrote: > Hi, > > I am trying to execute a script using globus-job-run. Script executes > successfully when i do globus-job-run from the terminal and stage the script > file. But when i try to execute the same command from within the java code by > getting a runtime object and then executing the globus-job-run command, it > fails with following values in error stream: > > Values in Error stream: > /opt/globus/bin/globus-job-run: line 24: /libexec/globus-script-initializer: > No such file or directory > > > same script was executing very well as of yesterday from within java code. I > am not able to understand what is going on. Any help will be appreciated. > > Thank you, > > Sulman.