Functions And Variables Of The Shell Scripts - SEH Print Server Installation Manual

Installation in unix systems
Table of Contents

Advertisement

Printing via Shell Scripts
4.5

Functions and Variables of the Shell Scripts

The following chapter deals with the functions of the shell scripts.
Transfer of Print
At the beginning of the shell script, a few variables are initialized.
Data
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 shell
script comes to an end and informs the spooler of the correct
completion of the print job by means of a return value of '0.' If the
printer port is already occupied because another printer is currently
printing, for example, the printer server sends the '552 No print slot
available' message to the FTP server.
The further processing of the shell script depends on the
initialization of the MAXR variables. When the shell script has come
to an end without the data having been able to be printed, a return
value of '129' (V UNIX or AIX systems) or '1' (BSD UNIX) indicates
that the print job must be repeated.
Log Files in Case of
The operating sequence of the print job will be recorded in a log file
Error
having the name of the printer and the extension '.last' in the '/tmp'
directory. This file contains, among other things, the start time of
the print job, the parameters with which the printer interface was
called, and the output of the FTP command. In case of an error, this
data provides information concerning the causes of the error.
Print Server Installation Manual
44

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Print Server and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents