User`s guide
Standard Print Servers
________________________________________________________________
TCP/IP AXEL Platine Terminal 45
5.2.2 - Using rcmd
The rcmd command reads data from 'standard input' (stdin) and sends this
data to one of the auxiliary ports of the AX3000.
Note: some UNIX systems use rsh instead of rcmd.
To print a file, issue the following command at the UNIX prompt:
$ cat file | rcmd ax3000 nport <RETURN>
where: - ax3000 is the name for the AXEL terminal (refer to /etc/hosts),
- port is the PRN name of the AX3000's port.
The
onlcr
parameter can be used to print a file with mapping NL to CR NL:
$ cat file | rcmd ax3000 nport onlcr <RETURN>
It is possible to associate the rcmd command with a pseudo-terminal. Then a
system printer can be attached to this pseudo-terminal. This method enables
use of the lp command to print on the AX3000's printer.
To use this feature, run the following command:
$ rcmd ax3000 port < /dev/ptypx &
where: - ax3000 is the name of the AXEL terminal (refer to /etc/hosts),
- port is the PRN name of the AX3000's port.
- /dev/ptypx is the master part of the pseudo-terminal.