/nosu
Direct the Uniface Router to start the Uniface Server via the remote shell -rsh.
/nosu
Description
For Unix only, the /nosu switch directs the Uniface Router to start the Uniface Server via the remote shell -rsh, without using the /bin/su command. (For more information, see /su.)
Use the /nosu command line switch in those situations where the /bin/su command is not allowed (for example, for security reasons).
You can use the /nosu switch in the following places:
- In the path declaration for a UST in the [SERVERS] section of the Uniface Router’s assignment file urouter.asn.
- In the path declaration of the client’s assignment file
The /nosu switch causes the
Uniface Router to run a process using the remote shell, rsh
or
remsh
. The process executes a script called upolyenv and
writes the output from this script to a temporary file
(/tmp/plenv.PID, where PID is the
process ID of the Uniface Server).
Before you can actually use /nosu, you need to:
- Create the upolyenv
script file in the Uniface Server user’s home directory.
This file contains the commands that produce the definitions for any environment variables that are required by the Uniface Server. It should at least execute the
insunis
script to define the Uniface environment.upolyenv must output these environment definitions to standard output, in the same format as the
env
command would do. The easiest way to do this is to use thatenv
command as the last command in the script. - Ensure that upolyenv is executable. The temporary file /tmp/plenv.PID, which contains the actual environment variable definitions, will be used when the UServer process is created to provide the server with that environment.