1 Reply Latest reply on Feb 12, 2015 11:59 AM by Bill Robinson

    svn command not found ?

    Narahari Lakshminarayana

      Friends:

       

      I have a NSHScript that I am trying to execute against  a SLES 11SP3 server.

       

      The machine has svn and it is in the path.

       

      My following NSHScript however does not work when the job is executed from the BLA console.

      set -x

       

      cd /tmp/paas/cool

      tmp_dir=$RANDOM

      mkdir -p $tmp_dir

      cd $tmp_dir

      pwd

       

       

      which svn

      ls -l /usr/bin/svn

      whoami

      /usr/bin/svn --version

       

      The output of this

      Job Name,"NSH_Generic_CopyFilesPaaS_Job - Run at Feb 12, 2015 10:23:24 AM"

      Start Time,Feb 12, 2015 10:23:24 AM

      End Time,Feb 12, 2015 10:23:32 AM

      Status,Completed with Errors

       

       

      Participant,Type,Date,Message

      "Run at Feb 12, 2015 10:23:24 AM",Info,"Feb 12, 2015 10:23:24 AM","Started running the job 'NSH_Generic_CopyFilesPaaS_Job' with priority 'NORMAL' on application server 'JobServer01'(2,023,260)"

      "Run at Feb 12, 2015 10:23:24 AM",Info,"Feb 12, 2015 10:23:26 AM",Executing work item NSH Script Job:NSH_Generic_CopyFilesPaaS_Job; Server:10.25.51.191;  on application server: JobServer07

      10.25.51.191,Info,"Feb 12, 2015 10:23:29 AM",//10.25.51.191/tmp/paas/cool/7862

      10.25.51.191,Info,"Feb 12, 2015 10:23:29 AM",svn not found

      10.25.51.191,Info,"Feb 12, 2015 10:23:29 AM",-rwxr-xr-x   1 root     root       241872 Oct 22  2012 /usr/bin/svn

      10.25.51.191,Info,"Feb 12, 2015 10:23:29 AM",bladmin

      10.25.51.191,Error,"Feb 12, 2015 10:23:29 AM",//@/opt/bmc/BladeLogic/8.0/NSH/tmp/JobServer07/scripts/job__25e0938d-fb5b-4fcb-a3c1-eeafa2199d77/script_DBKey-SJobKeyImpl-5357336-1__3c7686a8-2541-4d64-8c23-89308dd69035.2833583.1_NSH_Generic_CopyFilesPaaS.nsh:10: no such file or directory: /usr/bin/svn

      10.25.51.191,Info,"Feb 12, 2015 10:23:29 AM",Exit Code 127

      "Run at Feb 12, 2015 10:23:24 AM",Error,"Feb 12, 2015 10:23:31 AM",The job 'NSH_Generic_CopyFilesPaaS_Job' has failed

       

      As you can see the /usr/bin/svn is a valid file.  It is an executable and has execute permissions as well.  So what gives ?

       

      -Narahari