|
|||||||||
|
|||||||||
Using arguments files |
You can shorten your OmniMark command line to the following by using an arguments file:
omnimark -f my-argsfile.xar
An arguments file, usually ending in an ".xar" filename extension, contains all the command line arguments that you would otherwise have to type in or paste onto the command line.
For example, rather than typing the following as a single, long command line, you could save it in the following format as a plain text file named "myprog.xar":
-s myprog.xom -i /usr/bin/omnimark/xin/ -x /usr/bin/omnimark/lib/=L.so -log /home/httpd/html/myprog.log -d email-add "foo@bar.baz" -d root-dir "/home/httpd/html/" -d cgi-dir "/home/httpd/cgi-bin/" -brief
Instead of typing the entire command line, you can now simply call the arguments file from the command line using the "-argsfile" or "-f" command-line options. For example:
omnimark -f myprog.xar
OmniMark uses the file specified after the "-f" option as its command line and treats it exactly as though you had typed the file contents directly on the command line. Arguments files are extremely convenient, and are particularly useful when you are doing CGI programming with OmniMark.
---- |