Enables or reports the availability of shared login ports.
pshare [ -a ] [ Device ]
The pshare command enables shared ports. Shared ports are bidirectional. If you do not specify a Device parameter, the pshare command reports the names of all currently enabled shared ports. To enable a shared port, the getty command attempts to create a lock file in the /etc/locks directory that contains the ASCII process ID of the process. If another process is already using the port, the getty command waits until the port is available and tries again. The system enables a port by updating an entry in the /etc/inittab file and then sending a signal to the init process. After receiving the signal and reading the updated status entry, the process takes the appropriate action.
Use the Device parameter to specify the ports to be enabled. Permitted values include:
Note: You must have root user authority to run this command.
|Enables all ports as shared.
To enable the workstation attached to the /dev/tty2 port as a shared port, enter:
|Controls system initialization.
|Contains lock files for the pshare and pdelay commands.
|Contains the pshare command.
The getty command, init command, pdelay command, pdisable command, penable command, phold command, pstart command.