1 Reply Latest reply on May 27, 2011 12:13 PM by Bill Robinson

    trying to execute an autolic NSH script

      i created the following NSH script for automatically licensing servers but i am getting weird results.  when i execute this against a server that is not licensed i get exit code 1: cd: software not licensed: //servername/

       

      when i execute this against a server that is already licensed i get exit code 0 (i am using the autolic with -l to allow it deal with servers that are already licensed)

       

       

       

      i have the following 3 parameters

       

      USER (set to my ID)

      PASS (set to my password)

      SERVER (%h)

       

      The NSH script is:

       

       

      user=$1

      pass=$2

       

      for server in $*

      do

      autolic -l -v $USER $PASS $SERVER

      done

       

      does anyone have any ideas or an example of a autolicensing script that works ok?