How To Pass Commands Into NSSCON Via Script On OES Linux

  • 3180433
  • 30-Oct-2007
  • 27-Apr-2012

Environment

Novell Open Enterprise Server (Linux based)

Situation

At times administrators wish to script certain functionality for bootup, or other reasons. NSSCON has to be loaded before NSS commands can be passed; however, NSSCON only accepts input from the keyboard directly and not scripts.

Resolution

Use the following commands to execute NSS commands directly in a script (without having to open NSSCON):
echo -e "Enter Command Here"> /dev/nsscmd