Compresses the contents of a folder into a file.
The packf command compresses the messages in a folder into a specified file. By default, the packf command compresses messages from the current folder and places them in the msgbox file. If the file does not exist, the system prompts you for permission to create it. Each message in the file is separated with four Ctrl-A characters and a new-line character.
Note: You can use the inc command to unpack compressed messages.
Item | Description |
---|---|
-file File | Specifies the file in which to put compressed messages. The default is the ./msgbox file. If the file exists, the packf command appends the messages to the end of the file. Otherwise, the system prompts you for permission to create the file. |
+Folder | Identifies the folder containing the messages you want to pack. |
-help | Lists the command syntax, available switches (toggles), and
version information. Note: For Message Handler (MH), the name of this flag must be fully spelled out. |
Messages | Specifies what messages to pack. The Messages parameter
can specify several messages, a range of messages, or a single message.
If several messages are specified, the first message packed becomes
the current message. Use the following references to specify messages:
|
The following entries are entered in the UserMhDirectory/.mh_profile file:
Item | Description |
---|---|
Current-Folder: | Sets your default current folder. |
Msg-Protect: | Sets the protection level for your new message files. |
Path: | Specifies the user's MH directory. |
Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
packf -file schedule
The system responds with a message similar to the following:Create file "/home/mary/schedule"?
Enter y to
create the file.packf +test 3-7
The system responds with the shell prompt when the command is complete.packf cur first last
Item | Description |
---|---|
$HOME/.mh_profile | Specifies the MH user profile. |
/usr/bin/packf | Contains the packf command. |