Nordic Star Products 4.3A manual Message, Date, Time

Page 26

Overlay files and cover sheets

company name and :RECNAME: where you want to have the name, faxsr is called up in the following way:

#faxsr ETCDIR/cover.icab "REC=Infoflex Connect AB" "RECNAME=Ste- fan Norlin" >cover.final

Note that the result is written to “standard out” in the example above and that above the field names are arbitrary.

At the end of a file which is created with a printout in Windows, a page feed (hex 0x0c) and Esc E (hex 0x1b 0x45) is always added to restore the printer after the print-out. faxsr bypasses these three characters automatically unless the argu- ment -no_skip is given.

Summary:

!Produce the document in a suitable application in Windows.

!Choose HP Laserjet Plus as the printer.

!Choose the font cassette Z: Microsoft 1A for the printer.

!Remember that document codes should exist with some of the built-in type- faces.

!Print the document.

For each fax that is to be sent, the template is “mixed” with the variable data with the aid of the command faxsr.

Some special field codes:

:MESSAGE:

Replaced with the contents in the file which is indicated as an argument. E.g. “MESSAGE=/tmp/message” insert the file /tmp/message instead of the code.

:DATE:

The current date is inserted. The format is yyyy-mm-dd

:TIME:

The current time is inserted. The format is tt:mm.

Note that the script xfax automatically searches for a file cover under ETC-DIR. If this file is there it will be used as a cover sheet. You are welcome to look in xfax to find what field names have been used for the call to faxsr.

There are some things you may need to change in the PCL file, namely:

The symbol set up, XFAX wants to have Latin-1. Change any other control codes for the symbol set up to Latin-1 (ISO 8859-1). The control codes for Latin- 1 are ESC(0N, Roman-8 ESC(0U etc. This is described in more detail in a HP Laserjet manual.

If the MESSAGE codes lie before the screen data in the PCL file you obtain the following scenario. Where you set in the MESSAGE field, the files given are set in during the operation. If the files are more than one page long so that a page break is set in, the screen data (logotype, graphics, etc.) is set in on the page. Therefore, this code must be set in last in the document.

XFAX - User’s Guide 4.3a

26

Image 26
Contents Xfax Contents Characterset Defaultfont DefaultmarginDialprefix Defaultprinter Dialtimeout Httpenable Waitfortone Bindir OverviewEtcdir SpooldirXfaxdir Installation Environment variables Configuring the softwareKeywords Adding actions Xfax and multiple fax devicesConfiguring the software Xfax User’s Guide 4.3a Sending a fax FaxsendAttaching a note to a fax One fax to several recipients group transmissionPrinting a fax before sending Scheduled transmissionsID of the fax in the queue Script xfaxScript faxadm Document codesTelephone cost file ETCDIR/cost ChargeperminuteAreacodes 08LOCAL 031AREA 3 009ABROAD 0091USA LocalzoneLOCALZONE=LOCALLY Areacodes Receiving faxes Automatic printing of incoming faxesHandling faxes Fax queuesScheduling a fax Canceling of a faxReschedule a fax IntrListing faxes in a particular directory Routine maintenancePrinting a fax Cleaning the statistics file Using the client Using the address book in XfaxInstallation Xfax in a Windows environmentXfax in a Windows environment Cover sheets the old way Using overlay files as forms and cover pagesOverlay files and cover sheets Time MessageDate Overlay files and cover sheets Xfax and e-mail SendmailScript faxmail Xfax and e-mail Installing Ghostscript and the Xfax driver Troubleshooting Integrated Http server Integrated Smtp server Modems and flow control Command reference CommandsFaxmime FaxmailFaxmaster From FaxprintFaxq SubjectFaxrm Faxsend1234 7586535 faxfile Faxwho FaxsrFaxstat Exit codes General keywords AccesshttpKeyword reference FaxlineAcceptusers AccesssmtpAdministrator AlertuserBrokenselect CharactersetDefaultprinter DefaultfontDefaultmargin DialtimeoutExecuteafterreceive DomainExecworkdir ExecuteaftersendFaildir ExecutebeforesendExitstring FailfaxnoHttpenable Jetfaxcopy InitstringJetfaxbusytries JetfaxpagetimeLocalprefix LockingstyleMailonsuccess MailonerrorLpprintoption Partialpages NoerrorsaveNostatistics PrintrectoleftReversestats ResolutionReceiveonly RoundrobinSmtpserver SmtpenableSmtpsender 15.1.82 T30RTC Symbolset15.1.81 T30ECM 15.1.83 T30PAGELENGTHWaitfordialtone WaitfortoneXonxoff Troubleshooting Troubleshooting Technical specifications Typefaces in Xfax Index