flar
The flar command allows you to administer archives. With the flar command you can accomplish the following tasks.
Extracting Information From an Archive
Use the flar command with the -i option to get information about archives you have already created. The syntax of the command is as follows:
flar -i:info [-l] [-k keyword] [-t [-p posn] [-b blocksize]] filename
Table 20-4 Command-Line Options for flar -i
Option | Description |
---|---|
-k keyword | Returns only the value of the keyword keyword. |
-l | Lists all the files in the archive section. |
Splitting Archives
The flar command with the -s option splits a Web Start Flash archive into sections. The flar command copies each section into a separate file in the current or specified directory. The files are named after the sections, for example, the archive cookie is saved in a file that is named cookie. You can specify that the flar command only save one section. The syntax of the command is as follows:
flar -s:split[-d dir] [-u section] [-f archive] [-S section] [-t [-p posn] [-b blocksize]] filename
Table 20-5 Command-Line Options for flar -s
Option | Description |
---|---|
-d dir | Retrieves the sections to copy from dir, rather than from the current directory. |
-u section | If you do not use this option, flar copies all sections in the current directory. If you use this option, flar copies the Cookie, Identification, Archive, and section sections. You can specify a single section name or a space-separated list of section names. |
-f archive | Extracts the Archive section into a directory that is named archive, rather than place it in a file with the name archive. |
-S section | Only copies the section that is named section from the archive. |
Combining Archives
The flar command with the -c option creates a Web Start Flash archive from individual sections. Each section is assumed to be in a separate file, the names of which are the section names. At a minimum, the Archive Cookie (cookie) , Archive Identification (identification), and Archive Files (archive) sections must be present. If archive is a directory, the flar command uses cpio to archive it before including it in the combined archive. If the Archive Identification section specifies to compress the archive, flar compresses the contents of the newly combined archive.
flar -c:combine [-d dir] [-u section] [-t [-p posn] [-b blocksize]] filename
Note - No validation is performed on any of the sections. In particular, no fields in the Archive Identification section are validated or updated.
Table 20-6 Command-Line Options for flar -c
Option | Description |
---|---|
-d dir | Retrieves the sections to combine from dir, rather than from the current directory. |
-u section | If you do not use this option, flar combines all sections in the current directory. If you use this option, flar combines only the Cookie, Identification, Archive, and section sections. You can specify a single section name or a space-separated list of section names. |