Login script error: This utility could not execute external program <name of program>
This document (7011492) is provided subject to the disclaimer at the end of this document.
Novell Client 2 SP2 for Windows 7
the user sees the error:
This utility could not execute external program %windir%\system32\calc.exe
Executing the same application with the absolute path to the program, such as #c:\windows\system32\calc.exe, works fine.
See "Novell Login Scripts Guide" 3.2 Using Identifier Variables
The Novell Client login script syntax for referring to environment variables employs angle brackets: "To use environment variables as identifiers, enclose them in angle brackets (< >)."
The eDirectory login script and parsing is not a Windows batch file or command script, and the Windows batch file and command script method of using "%VariableName%" is not what's valid in an eDirectory login script. (Nor is
Windows the only platform on which eDirectory login scripts execute.)
Note "environment variables" are different than "identifier variables". Identifier variables are variables internal to the eDirectory login script processor itself, such as "OS", "SHELL_VERSION", etc. WINDIR, because it's actually an environment variable, needs angle brackets. OS, because it's an internal identifier variable, does not.
For a statement where the variable does not need to be in quotes, the variable itself can be used without any percent character:
> IF <WINDIR>=”C:\WINDOWS” THEN
> IF OS=”WINNT” THEN
If the variable is being referenced in a string that will otherwise be taken literally, such as within quotes, using the percent character is required to signal the parser that the text is not literal and needs to be processed as a variable:
> WRITE "WINDIR = %<WINDIR>"
> WRITE "OS = %OS"
This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7011492
- Creation Date:12-DEC-12
- Modified Date:31-JAN-13
Did this document solve your problem? Provide Feedback