📄 efax.1
字号:
.TH EFAX 1 "April 1994" "" "".UC 1.\" $Id: efax.1,v 1.4 1993/11/20 17:34:59 edc Exp edc $.SH NAMEefax \- send/receive faxes using Class 1 or 2 fax modems.SH SYNOPSIS.B efax[\fIoptions\fP][\fB-r\fP \fIpat\fP|\fB-t\fP \fInum\fP \fIfile\fP...|\fB-p\fP \fInum\fP \fIpat\fR].SH OPTIONSWhere \fIoptions\fP are:.TP 9 .B -d \fIdev\fP use the fax modem connected to device \fIdev\fP. The default is\fB/dev/fax\fP. .\" If \fIdev\fP is \fB\`-'\fP efax uses the standard input..TP 9 .B -o \fIopt\fP use option \fIopt\fP to accommodate a non-standard fax modemprotocol. See the MODEM REQUIREMENTS section below for moredetails. The \fIopt\fPions are:.TP 9.B 1Use Class 1 fax modem commands. The modem must suport Class 1commands. The default is to use Class 2 commands..\" .TP 9.\" .B .\" 0.\" Use Class 2.0 fax modem commands (untested)..TP 9.B ause software adaptive answer method. If the first attempt toanswer the call does not result in a data connection within 15seconds the phone is hung up temporarily and answered again infax mode (see "Accepting both fax and data calls" below)..TP 9.B e ignore errors in modem initialization commands..TP 9.B rreverse bit order during data reception. Most Class 2 modemsrequire this option..TP 9.B xsend XON (DC1) instead of DC2 to start data reception. Appliesto Class 2 only..TP 9.B zdelay an additional 100 milliseconds before each modeminitialization or reset command. The initial delay is 100ms. For example, -ozzz produces a 400 ms delay..TP 9.B -i \fIstr\fPsend the command \fBAT\fP\fIstr\fP to the modem to initialize it.Multiple \fB-i\fP may options be used..TP 9.B -z \fIstr\fPsend the command \fBAT\fP\fIstr\fP to the modem to reset it whendone. Multiple \fB-z\fP may options be used..TP 9.B -c \fIcaps\fPset the local capabilities to \fIcaps\fP. See the section oncapabilities below for the format and meaning of \fIcaps\fP. Thedefault is 1,3,0,2,0,0,0,0. For Class 2 operation this option must appear after the modeminitialization (-i) option that enables fax mode..TP 9.B -l \fIid\fPset the local identification string to \fIid\fP. \fIid\fP shouldbe the local telephone number in international format (forexample "+1 800 555 1212"). This is passed to the remote faxmachine. Some fax machines may not accept characters other thannumbers, space, and '+'. For Class 2 operation this option mustappear after the modem initialization (-i) option that enablesfax mode..TP 9.B -h \fIhdr\fPput string `hdr' at the top of each page. The first %d in `hdr'is replaced by the page number, the second is replaced by thenumber of pages..TP 9.B -f \fIfnt\fPuse font file \fIfnt\fP for generating the header. The defaultis a built-in 8x16 font. See efix(1) for the font file format..TP 9.B -v \fIstrng\fPselect types of messages to be printed. Each \fIlower-case\fPletter in \fIstrng\fP enables one type of message:.RS 12.Be - errors.br.Bw - warnings.br.Bi - session progress information.br.Bn - capability negotiation information.br.Bc - modem (AT) commands and responses.br.Bh - HDLC frame data (Class 1 only).br.Bm - modem output.br.Ba - program arguments.br.Br -reception error details.RE.RS 9The default is "ewin"..RE.TP 9.B -x \fIlkf\fPuse UUCP-style lock file \fIlkf\fP to lock the modem devicebefore opening it. If the device is locked, efax checks every 15seconds until it is free. Up to 16 -x options may be used ifthere are several names for the same device. A `#' prefix on thefile name creates an HDB-style (text) lock file..TP 9.B -sremove lock file(s) after initializing the modem. This allowsoutgoing calls when efax is waiting for an incoming call. Ifefax detects modem activity it will attempt to re-lock thedevice. If the modem is now locked by another program efax willexit and return 1 (``busy''). Normally a new efax process isthen started by init(8). The new process waits until the linebecomes free..TP 9.B -wwait for an OK or CONNECT prompt instead of issuing an answer(\fBATA\fP) command to receive a fax. Use this option when themodem is set to auto-answer (using S0=\fIn\fP) or if anotherprogram has already answered the call..TP 9.B -g \fIcmd\fPif a \fBCONNECT\fP (or \fBDATA\fP) response indicates a datacall, the shell \fB/bin/sh\fP is exec(2)'ed with \fIcmd\fP as itscommand. \fIcmd\fP is a printf(3) format that may contain up to6 %d escapes which are replaced by the baud rate following themost recent \fBCONNECT\fP message. \fIcmd\fP typically exec'sgetty(8)..TP 9.B -q \fIn\fPask for page retransmission if more than \fIn\fP errors per pageare detected. Default is 10..SH COMMANDS.TP 9.B -r \fIpat\fPanswer phone and receive a fax. Each fax page is stored in aseparate file. The file name is created using \fIpat\fP as astrftime(3) format string. A page number of the form .001, .002, ... is appended to the file name. If \fIpat\fP is blank (""), adefault string of "%m%d%H%M%S" is used. If a file alreadyexists, efax terminates with an error message..TP 9.B -t \fInum file\fP...dial telephone number \fInum\fP and send the fax image files\fIfile\fP.... The telephone number \fInum\fP is a string thatmay contain any dial modifiers that the modem supports, forexample, a T prefix for tone dialing or commas for delays..TP 9.B -p \fInum pat\fP...dial telephone number \fInum\fP and receive any pages availableto be polled. \fInum\fP and \fIpat\fP are as above. Onlyimplemented for Class 1 modems..SH FAX FILE FORMATSEach page is stored in a separate file. The images are codedaccording to the ITU-T (CCITT) Group 3 fax standard, T.4. TheEXAMPLES section below shows how efix or the Ghostscript and thePBM utilities can be used to create and print these files..SH OPERATING SYSTEM REQUIREMENTSThe operating system must provide short response times to avoidprotocol timeouts. For Class 2 modems the delay should notexceed 1 or 2 seconds.When using Class 1 modems the program must respond to certainevents within 55 milliseconds. Longer delays may cause the faxprotocol to fail in certain places (between DCS and TCF orbetween RTC and MPS). Class 1 modems should therefore not beused on systems that cannot guarantee that the program willrespond to incoming data in less than 55 milliseconds. Inparticular, intelligent serial cards or terminal servers mayintroduce enough delay to cause problems with Class 1 operation.The operating system must also provide sufficient low-levelbuffering to allow uninterrupted transfer of data from the modemto a disk file at the selected baud rate, typically 9600 bps.Since the fax protocol does not provide end-to-end flow controlthe effectiveness of flow control while receiving is limited bythe size of the modem's buffer. This can be less than 100 bytes.Efax does not use flow control during reception..SH MODEM REQUIREMENTS"Group" describes the protocol used to send faxes over thetelephone network. Efax suports the universal Group 3 standard.The "Class" is the protocol used between a computer and a faxmodem. Efax supports Class 1 and 2 (but not 2.0) fax modems..\" Class 2.0 support is untested.Almost all Class 2 modems reverse the bit order (MSB to LSB) onreceive. This will cause errors when trying to display or printthe received files. The \fB-or\fP option should be specifiedwhen receiving faxes using these modems.All fax modems except AT&T models use XON/XOFF flow control bydefault. This type of flow control adds very little overhead infax mode. Most modems have unreliable hardware (RTS/CTS) flowcontrol in fax mode. Therefore efax only supports XON/XOFF flowcontrol.While some modems have serial buffers of about 1k bytes, manyinexpensive modems have buffers of about one hundred bytes andare thus more likely to suffer overruns when receiving data.Some modems may need a delay between commands of more than thedefault value used by efax (100 milliseconds). If the delay istoo short, commands may not echo properly, may time out, or maygive inconsistent responses. Use one or more \fB-oz\fP optionsto increase the delay between modem initialization commands.By default efax sends DC2 to start the data flow from the modemwhen receiving faxes from Class 2 modems. A few older modemsrequire XON instead. Use of DC2 would cause the modem to give anerror message and/or the program to time out. The \fB-ox\fPoption should be used in this case.A few older Class 2 modems (e.g. some Intel models) don't sendDC2 or XON to start the data flow to the modem when sendingfaxes. After waiting 2 seconds efax will print a warning andstart sending anyways.Some inexpensive "9600 bps" fax modems only \fItransmit\fP at9600 bps and reception is limited to 4800 bps.The following Class 1 modems have been reported to work with efax:AT&T DataPort,.\" Andrea Gozzi <work@forum.sublink.org>, v0.6, SCO 3.2.0, (Class 1)Cardinal Digital Fax Modem (14400),.\" awk0%navajo@gte.com, v0.6, linux 1.0, downloading fax144c.carDigicom Scout+,.\" umlin000@CC.UManitoba.CA, v 0.6, Linux 1.1.12QuickComm Spirit II,.\" umlin000@CC.UManitoba.CA, v 0.6, Linux 1.1.12Smartlink 9614AV-Modem,.\" gt@sky.gun.de, v0.6, Linux 1.1.15Supra Faxmodem 144LC,.\" john@johncon.johncon.com, v0.6, Consensys (ie., Unixware) 4.2USR Courier V.32bis Terbo,.\" meyer@geomatic.no, v0.6, SunOS 4.1.3USR Sportster,.\" satyr!kayvan@apple.com (Kayvan Sylvan), v0.6, Linux (?)Zoom AFC 2.400,.\" hausutzu@pse.panic.bln.sub.org (Utz-Uwe Haus), v0.6, LinuxZoom VFX14.4V..\" edc@ee.ubc.ca (me!), v0.6, LinuxThe following Class 2 modems have been reported to work with efax:14k4 Amigo Communion fax/modem,.\" bekker@tn.utwente.nl, efax0.5askey modem type 1414VQE,.\" thowi@chiba.escape.de, efax06?, Linux?AT&T DataPort,.\" ingber@alumni.caltech.edu (Class 2)ATT/Paradyne,.\" john@johncon.johncon.comAT&T Paradyne PCMCIA,.\" jh@datanet.tele.fi (Juha Heinanen)Boca modem,.\" ?BOCA M1440E, .\" v0.6a, SunOS 4.1.1, Linux 1.0.9.\" hsw1@papa.attmail.comCrosslink 9614FH faxmodem,.\" ?FuryCard DNE 5005,.\" a PCMCIA Class 3 faxmodem.\" ron@draconia.hacktic.nlGVC 14.4k internal,.\" jchen@ee.mcgill.ca, 0.6a w/ stty fax patch, Linux kernel 1.1.59Intel 14.4 fax modem,.\" (matloff@cs.ucdavis.edu)Megahertz 14.4,,\" norman@bellcore.comMicrocom DeskPorte FAST ES 28.8,.\" Skip Montanaro (skip@automatrix.com), 0.6a, LinuxMotorola UDS FasTalk II,.\" Raj Mathur (root@darbari.ncst.ernet.in), 0.6a, Linux 1.1.48MultiTech 1432MU,.\"reb@pdsf.ssc.govPractical Peripherals PM14400FXMT,.\" (DEC Alpha AXP 3000/500 running OSF/1 V1.3)Supra V32bis,.\" john@johncon.johncon.com, v0.5b, SysV R4.2.\" tbucks!timothy@csn.org.\" (ROCKWELL).\" Alec.Muffett@UK.Sun.COM (Alec Muffett), Linux 1.1.51, .\" Supra FAXModem v.32bisTelebit Worldblazer,.\" blurfl!jhood@Dartmouth.EDU.\" Telebit Worldblazer with ROM version LA7.02. (requires -or).\" (my configuration required hardware flow control).\" Dario_Ballabio@milano.europe.dg.com, v 0.6, Version LA7.05C. Twincom 144/DFi,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -