4 Replies Latest reply on Sep 19, 2011 4:23 PM by Siddu angadi

    Not able to trigger shell file

    Siddu angadi

      Hi,

       

      I have created one shell file ( called install.sh) which has the following commands:

       

      #!/bin/sh

      cp -Rf /tmp/tomcat /usr/local/tomcat

      chmod -R 777 /usr/local/tomcat

       

      echo "CATALINA_HOME=/usr/local/tomcat" >> /etc/profile

      echo " export CATALINA_HOME" >> /etc/profile

       

       

      /usr/local/tomcat/bin/startup.sh

       

       

       

      But when i try to trigger this shell file through blpackage, deploy is getting failed.

       

      Then final I took nsh to that server and try trigger the install.sh file, I am getting below error:

       

      bad interpreter: /bin/sh: no such file or directory

       

      However i can trigger shell file by manualy loggin into server through putty.exe.

       

      What may be the reason?