EasyManua.ls Logo

Kyocera Printserver - Function of Shell Scripts

Kyocera Printserver
207 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Function of Shell Scripts
A-2 Print Server Installation Manual
A.2 Function of Shell Scripts
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.
Transfer of Print
Data
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.
End of Print Job When all data has been transferred, the print server sends the '226
Transfer complete' message to the FTP server. In this case, the

Table of Contents