User`s guide

FTP (File
Transfer
Protocol)
7-9
UNIX Utilities
printer, check the number of jobs in the print queue, list the available
fonts, and send files to the printer.
While FTP is an interactive program that requires you to log on the
printer before sending commands, these commands can be entered
into a UNIX shell script or a PC batch file that executes the com-
mands automatically. In this way, a continuous check of the printer job
queue, for example, can be done by writing a script that loops around
the appropriate FTP commands.
Supported FTP Commands
Since several FTP commands are not applicable to a printing environ-
ment, the QMS implementation supports a printer-related subset of
the standard FTP commands. Because requests for information such
as job status or a list of current fonts are not explicit FTP commands,
other methods are used to obtain this type of information. These
methods are described later in this chapter.
It is important to note that all versions of FTP are not identical. How-
ever, the following commands are supported by most implementa-
tions of FTP, including the QMS implementation:
Use this command... to...
cd
directory
change to the specified printer directory
close terminate the ftp session
dir list the contents of the current printer directory
get receive a file from the printer
help list commands that are currently supported by the
FTP server
ls list the contents of a directory (filenames only)
mput
filenames
send multiple files to the printer
open open an ftp session on the printer
put
filename
send one file to the printer
pwd display the full pathname or the current printer
directory
quit exit from FTP
type
filetype
specify whether the system is to interpret print riles
as binary as ASCII data