![]() |
![]() HP OpenVMS Systems Documentation |
![]() |
OpenVMS User's Manual
4.5.3 Displaying Files on Remote NodesWhen using DECnet to display the contents of a file on a remote node, include the node name, disk, and directory in the file specification. In the following example, the file COMPANY_HOLIDAYS.TXT (which is located on remote node CHAOS) is displayed:
When using TCP/IP to display the contents of a file on a remote node,
use the FTP VIEW command, and specify the file name. If the file is not
in your current working directory, include the directory name in the
file specification. Refer to the Digital TCP/IP Services for
OpenVMS User's Guide for information on the FTP VIEW command.
You can use the asterisk (*) wildcard to display all versions of a specific file. In the following example, all versions of the file LOGIN.COM in the directory [JONES] are displayed:
In the following example, all versions and all file types of all files that begin with the word STAFF in the directory [JONES] are displayed:
4.5.5 Displaying Multiple Files
If you specify more than one file in the TYPE command line, the system
displays the files in the order you specify. If you use wildcard
characters, the system displays the files in alphabetical order.
The DELETE command removes files from directories and releases the disk space they occupy for use by other files. When you use the DELETE command, you must specify a version number or the asterisk (*) wildcard character as a version number in each file specification. For example, to delete version 17 of the file POUND.LIS, enter the following command:
To delete versions 16 and 17 of the file POUND.LIS, enter the following command:
To delete all versions of the file POUND.LIS, enter the following command:
When you delete many files with wildcard characters, you might want to confirm each deletion by using the /CONFIRM qualifier. Similarly, you might want to display the names of files as they are deleted. To do this, specify the /LOG qualifier with the DELETE command. In the following example, the deletion of all the files in the subdirectory [JONES.LICENSES.DOG] is confirmed because the /CONFIRM qualifier is specified:
In the following example, the system displays the names of the files after they are deleted because the /LOG qualifier is specified:
4.6.1 Using the PURGE CommandThe PURGE command deletes all except the latest version of the specified file (or all files) in the default directory or any other specified directory. Purging old versions of files after updating them enables you to retain more free space on your disk. In the following example, all except the latest two versions of each file in the default directory are purged:
4.7 Protecting Files from Other UsersThe following sections provide an overview of file protection procedures. For detailed security information, see the following:
4.7.1 Access Control Lists (ACLs)
To prevent other users from accessing your files, you can change the
protection or modify the access control list (ACL) of your files. To
change the protection or modify the ACL of a file, you must own the
file, have control access to the file, or have GRPPRV, SYSPRV, BYPASS,
or READALL privilege.
There are two types of file protection: default and explicit. When a file is created, it usually has the same protections as its parent directory; this is the default protection. If you create a file using the CREATE/PROTECTION command or if you change the protection on an existing file by issuing the SET SECURITY/PROTECTION command, you are using explicit file protection.
Note that to protect a file completely, you must apply the same or
greater protection to the directory in which the file resides.
To print a file or files, use the PRINT command. The PRINT command places your print job (all the files to be printed) in a list of jobs to be printed called a print queue. The file types of the files named in the PRINT command default to .LIS or the last explicitly named file type. The system displays the job name, the queue name, the job number, and status of the job. By default, the job name is the name of the first (or only) file specification in the PRINT command. After a job is submitted to a queue, you reference it using the job number. After the job is queued, it will be printed when no other jobs precede it in the queue and when the printer is physically ready to print. In the following example, a print job containing three files is placed in the default print queue, SYS$PRINT:
Because the default file type for the PRINT command is .LIS, the files
POUND.LIS, MALE.LIS, and FEES.DAT are queued. The job name is POUND,
the queue name is SYS$PRINT, and the job number is 202.
A print queue can execute only one job at a time. Print jobs are
scheduled for printing according to their scheduling
priority, and the job with the highest priority is
printed first. If more than one job exists with the same priority, the
smallest job is usually printed first. Jobs of equal size having the
same priority are selected for printing according to their submission
time. Priority may also be determined by the system manger or by
entering the /PRIORITY qualifier to the PRINT command. For more
information on scheduling priorities, see the OpenVMS System Manager's Manual.
The default print queue, SYS$PRINT, is usually started as part of the site-specific system startup procedure. The following table shows commands you can use to display information about queues:
In the following example, the SHOW ENTRY command is used to display information about a print job that has been queued:
4.8.3 Print FormsA print form serves the following functions:
If your printing needs are limited, you do not need to use special
forms because Compaq supplies a systemwide default form (named DEFAULT)
for all queues. System managers can also create print forms. If you
need to format output or if certain print jobs require special paper,
contact your system manager.
To stop a print job and delete it from the print queue, enter the entry number parameter to the DELETE/ENTRY command. In the following example, entry 202 is deleted:
4.8.5 Printing Files on Other NodesDECnet or TCP/IP services allow you to print a file on another system. Using TCP/IP, your system manager can configure your system with the Line Printer Remote (LPR) and Line Printer Daemon (LPD) network services that allow you to use the DCL PRINT command to send print jobs to a print queue on a remote network host. The remote host can be a UNIX system or another OpenVMS system running LPR/LDP. Using the LPR/LPD network services, you can perform the following:
Refer to the Digital TCP/IP Services for OpenVMS User's Guide which describes how to print files using the LPR/LPD commands. With DECnet, you can print a file on another system, copy that file to the remote node and specify the /REMOTE qualifier to the PRINT command. In the following example, the file COMPANY_HOLIDAYS.TXT is copied from the local node to the remote node CHAOS and the file is queued for printing to the default system print queue (SYS$PRINT) on node CHAOS:
An access control string indicates that the user JONES is authorized to copy files to the directory [JONES] on node CHAOS. The asterisk (*) wildcard at the end of the file specification instructs the system to duplicate the file name COMPANY_HOLIDAYS.TXT when that file is copied to the remote node.
4.8.6 PRINT Command QualifiersPrint jobs can be controlled in various ways by using qualifiers to the PRINT command. For example, you can specify the number of copies printed or you can request that the system notify you when your print job is complete. In addition to the qualifiers described in this manual, if you are running DECprint Supervisor software on your system, you can use the /PARAMETER qualifier to print landscape, two-sided, or many other ways. Contact your system manager for a list of print options that are available on your system. The following table lists a summary of PRINT command qualifiers. For complete information on the PRINT command, refer to the OpenVMS DCL Dictionary or online help.
1Parallel qualifiers for the SET QUEUE/ENTRY command allow you to specify these operations for print jobs that are already queued but not yet printing. 4.8.7 WWPPS Utility (Alpha Only)The World-Wide PostScript Printing Subsystem (WWPPS) is a utility that allows you to print a text file with various language characters on any PostScript printer. By embedding font data within the PostScript printable file, the language characters can be printed even if the printer does not have the local language fonts.
WWPPS supports the following languages:
When processing a character, WWPPS checks to see if the character is
printable in the current locale. The locale setting is provided by the
Compaq C for OpenVMS Run-Time Library (RTL) during the OpenVMS
installation. Except for files in 16-bit Unicode or ISO 10646 (USC-4)
format, you must set the appropriate locale before printing files that
contain characters in languages other than English. If the locale
setting for the process is not appropriate for the input file, the
locale can be set specifically for the print job by using the /LOCALE
qualifier.
The system manager may have already set up the foreign command for WWPPS, but if not, you can do so by adding the following line to your LOGIN.COM:
To invoke the WWPPS utility from the DCL prompt, enter the following:
4.8.7.2 WWPPS Utility CommandsThe following list contains descriptions of the commands, parameters, and qualifiers available in the WWPPS utility. Examples follow each description. EXIT --- Exits from the WWPPS session and returns to the DCL command level. You can also exit the WWPPS session by pressing Ctrl/Z or Ctrl/C.
HELP --- Enables you to obtain information about the World-Wide PostScript Printing Subsystem (WWPPS).
To obtain information about individual commands or topics, enter the HELP command followed by the command or topic name.
PRINT --- Converts one text file at a time into a printable PostScript file and then submits its to the printer queue. Characters can be printed in the standard font or in bold. The following codesets are supported on OpenVMS systems:
All of these codesets are supported by WWPPS, but fonts can be associated with only one language at a time for each codeset. WWPPS also supports Unicode character conversion for all of these codesets except Thai. A Unicode character is converted to a character in one of these codesets; then the font supporting that codeset is used for the character in the PostScript file. If a character cannot be converted, it is printed as a space. The optional qualifiers for the PRINT command are:
|