[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4

pshare Command

Purpose

Enables or reports the availability of shared login ports.

Syntax

pshare [ -a ] [ Device ]

Description

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:

Flags

-a Enables all ports as shared.

Examples

To enable the workstation attached to the /dev/tty2 port as a shared port, enter:

pshare /dev/tty2

/etc/inittab Controls system initialization.

Files

/etc/locks Contains lock files for the pshare and pdelay commands.
/usr/sbin/pshare Contains the pshare command.

Related Information

The getty command, init command, pdelay command, pdisable command, penable command, phold command, pstart command.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]