SAS/CONNECT Spawner in Windows

Location of the Spawner Executable in Windows

The SAS/CONNECT spawner executable file, cntspawn.exe, is located in the directory in which SAS is installed at your site or on your computer. Throughout this document, this folder is referred to as the SAS-installation-directory.
In Windows the spawner executable is installed by default in the following location:
    SAS-installation-directory\SASFoundation\9.4\cntspawn.exe
Here is an example of the spawner location in a typical SAS Foundation installation on Windows:
    C:\Program Files\SASHome\SASFoundation\9.4\cntspawn.exe

Managing the SAS/CONNECT Spawner in Windows

User Rights in Windows

By default, when the SAS/CONNECT spawner is installed as a Windows service, it runs under the LocalSystem User ID, which has all the required User Rights for running the SAS/CONNECT spawner.
If you do not install the SAS/CONNECT spawner as a Windows service (that is, if you run it from your system prompt), the Windows User ID that is used to start the SAS/CONNECT spawner must be the local Administrator of the machine and must have the following User Rights:
  • act as part of the operating system
  • bypass traverse checking (the default is everyone)
  • increase quotas
  • replace a process level token
  • log on locally (the default is everyone)
The Windows user ID specified at sign-on needs only the User Right “log on as a batch job.”

Basic Tasks

  1. Install the spawner as a Windows service.
  2. Start the spawner in Windows.
  3. Stop the spawner in Windows.
  4. Uninstall the spawner as a Windows service.

Installing the SAS/CONNECT Spawner as a Service in Windows

To install the SAS/CONNECT spawner on a Windows server, specify cntspawn -install from the Windows command line, using the full pathname to the executable in quotes, as shown here:
SAS-installation-directory\SASFoundation\9.4\cntspawn.exe” –install
After running this command, Windows assigns the default name, SAS Connect Spawner, to the spawner service. You can assign a different name to the spawner service by using the -SERVICENAME option with the -INSTALL option on the CNTSPAWN command.
For more information about using the -SERVICENAME option, see -SERVICENAME in Options for Starting and Managing the SAS/CONNECT Spawner.

Starting and Stopping the SAS/CONNECT Spawner in Windows

Once the spawner is installed, it can be started or stopped using any one of the following methods:
  • specify the NET START or NET STOP command with the spawner service name:
    NET START "SAS Connect Spawner"
    NET STOP "SAS Connect Spawner"
  • use the Windows Services Manager plug-in to start or stop the spawner service.
  • type CTRL-C or double-click in the upper left corner of the window in which the spawner is running.

Uninstalling the SAS/CONNECT Spawner in Windows

You can uninstall the SAS/CONNECT spawner by specifying the -UNINSTALL option with the CNTSPAWN command. Specify the full pathname to the CNTSPAWN executable in quotes, as shown here:
SAS-installation-directory\SASFoundation\9.4\cntspawn.exe” –uninstall
If you used the -SERVICENAME option with the -INSTALL option when you installed the spawner to explicitly name the spawner service, then you must use the -SERVICENAME option with the -UNINSTALL option to uninstall it. Use quotes around the full pathname and around the spawner service name.
     "SAS-installation-directory\SASFoundation\9.4\cntspawn.exe" -uninstall 
     -servicename "mySpawner"
For more information about using the -UNINSTALL option, see -UNINSTALL in Options for Starting and Managing the SAS/CONNECT Spawner.