SAS/IntrNet 1.2: Application Dispatcher |
Server Startup TipsTo enhance Application Server startup, make these changes, each of which is described on this page:
Creating a Server Log File
If you want to log Application Server events, you need to include the sas -altlog /usr/local/lib/IntrNet/inetsrv/appsrv.log If the filename you specify for the server log does not exist, SAS software creates it for you. The default Application Server shortcut on Windows installations creates a log file named Note: Do not forget to use different names or directories for log files when starting more than one Application Server. Using a Script to Start the ServerYou can write a script that automatically starts your Application Server and runs it in the background. You can include the following in your script:
The following is an example script that you could use to start the Application Server on UNIX: /usr/local/sas -dmsbatch -fsd ascii.vt100 \ -initcmd "af c=sashelp.web.appstart.scl port=5001 \ srvroot='/usr/local/lib/IntrNet/inetsrv'" On Windows, your script would be very similar to the default Start Menu shortcut created at installation. It might contain the following: C:\Program Files\sas\sas.exe -dmsbatch -initcmd "af c=sashelp.web.appstart.scl port=5001 srvroot='C:\Program Files\sas\IntrNet'" For further information on invocation options, consult the SAS Companion for your operating system. Supplying a Password When Starting the ServerWhen you start the server, you can optionally specify a password as a parameter to the AF command, as in the following example: af c=sashelp.web.appstart.scl port=5001 passwd=foobar The password must start with a letter and contain no spaces. Specifying a password prevents anyone from running administrative programs without supplying the password. By using an HTML form with a password field, as shown in the following example, you can create an administrative interface to the server: <FORM ACTION="/cgi-bin/broker"> <INPUT TYPE="hidden" NAME="_SERVICE" VALUE="default"> <INPUT TYPE="hidden" NAME="_PROGRAM" VALUE="endsas"> Password: <INPUT TYPE="PASSWORD" NAME="_PASSWD"> <INPUT TYPE="SUBMIT" VALUE="Shut down"> </FORM> Alternatively, you can create a link which simply includes <A HREF="/cgi-bin/broker?_SERVICE=default&_PROGRAM=endsas&_PASSWD=foobar">shutdown</A> |
SAS/IntrNet 1.2: Application Dispatcher |