Function Of Shell Scripts - Kyocera Printserver Installation Manual

Table of Contents

Advertisement

Function of Shell Scripts

A.2 Function of Shell Scripts
Transfer of Print
Data
End of Print Job
A-2
In UNIX networks, you can use shell scripts to print when remote
printing via the LPD protocol and printing via direct TCP/IP ports
are not possible. The *.sh shell scripts are sample scripts for the
standard printer interfaces of the print spoolers supported by the
print server: lpsched, lpd, and qdaemon.
The following shell scripts are available:
aix.sh (for AIX systems)
bsd.sh (for BSD systems)
sys5.sh (for System V)
Before you can print via shell scripts, you must first transfer them
from the print server and then adapt them to the respective UNIX
network. Please read the "Printing via Shell Scripts" section on
page 4-25 if necessary.
The following chapter deals with the basic functions of these shell
scripts.
At the beginning of the shell script, a few variables are initialized.
The print data is gathered in a temporary file ('/tmp/xxx.d') and
then transferred to the print server via FTP. In the process, the
name of the FTP target file determines the printer port of the print
server. The transfer mode of the FTP server preset in the shell
script is binary to suppress the conversion of LF to CR+LF and
thus to make the correct transfer of graphic data possible. For the
proper output of text data, this conversion must therefore be
carried out in the printer itself.
When all data has been transferred, the print server sends the '226
Transfer complete' message to the FTP server. In this case, the
Print Server Installation Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents