Remote Printing Using rcmd PRISMAproduction Network Functions
214 A29247-X2-X-8-7670
Another way of transferring data is to use the FTP program. Whereas data transfer with the
rcp command is better suited for automated procedures, FTP has more features to accom-
modate to a variety of conditions:
Line 1: ftp printserver1
Line 2: Name:{username}
Line 3: Password:{password}
Line 4: ftp>binary
Line 5: ftp>cd /u/spslib/applic5
Line 6: ftp>put myfile
Line 7: ftp>mput myf*
Line 8: ftp>put myfile.job newname.job
Line 9: ftp>quit
Explanation:
Line 1: Starts FTP. FTP establishes a connection with the print server (here
called "printserver1").
Line 2: FTP asks for the user name.
Line 3: FTP asks for the password.
Line 4: Switches the transfer mode to "binary".
Line 5: Sets the directory /u/spslib/applic5 on the server.
Line 6: Transfers the file "myfile" from the local workstation to the print server.
Line 7: Transfers all files selected with myf* from the local workstation to the
print server (mput = multiple put).
Line 8: Transfers file "myfile.job" to the print server and renames it
"newname.job".
Line 9: Quits FTP.