2 Replies Latest reply: Jul 14, 2014 8:34 AM by KatherineNC RSS

    pkgadd error when having @ in pkgvar

    KatherineNC

      Hi all

       

      I have a package that works a long time fine. Since yesterday I got a error from pkgadd because of the @ in the Email from pkgvar.

      ---

      #) pkgadd mypackage

      Processing package instance <My Package> from </var/spool/pkg>

       

      My Package (all) 4.4.0.16

       

                  Copyright 2012 Me

      ## FATAL: cannot evaluate ""supportmail@domain.com"" near tokens "" supportmail@domain.com "" : Global symbol "@domain" requires explicit package name at (eval 78) line 1.

      pkgadd: ERROR: request script did not complete successfully

       

      Installation of <My Package> failed.

      No changes were made to the system.

      ---

      After deleting the @ in pkgvar the package prompt interactive for the email address, see below and installed it without errors.
      Changing pkvar.

      ---

      cat pkgvar

      -snippet

       

      PARAMETER supportmail

                      VARIABLENAME SUPPORTMAIL

                      DEFAULTVALUE set "supportmail@domain.com "

                      COMMENT "Recp. Email address for support logs mails"

       

      -snippet

      ---

       

      Deleted @ in pkgvar like this:

      ---

      -snippet

       

      PARAMETER supportmail

                      VARIABLENAME SUPPORTMAIL

                      DEFAULTVALUE set "supportmaildomain.com"

                      COMMENT "Recp. Email address for support logs mails"

       

      -snippet

      ---

       

      Interactive installation running.

      ---

      #) pkgadd mypackage

      My Base Package(all) 3.4.0.47

       

                  Copyright 2012 KatherineNC

       

      1. Recp. Email address for support logs mails

      ## DEFAULT:

      Please enter value : <- interactive part typed ->support@maildomain.com<

       

      And package installation run successfully through ->:

      Please enter value : supportmail@domain.com

      Using </> as the package base directory.

      ## Processing package information.

      ## Processing system information.

         3 package pathnames are already properly installed.

      ## Verifying package dependencies.

      ## Verifying disk space requirements.

       

      Installing My Package as <My Package>

      -snippet

      ---

       

      How can I fix this? We need the support Email address and can't handle interactive installation in other environments.

      Thank you in advanced. For any idea and input.

       

      Message was edited by: KatherineNC changed company, customer, packages name so that the post is anonymous.