Setting an environment variable from the command line

To set the value of the environment variable PDPRINTER to Printer3 for a single session, enter one of these commands:
  • In the C shell, enter:
    setenv PDPRINTER Printer3
  • In the Korn shell or the Bourne shell, enter:
    export PDPRINTER=Printer3
  • In the C shell, enter:
    setenv PDPRINTER Printer3