pagesend.1m
上传用户:weiyuanprp
上传日期:2020-05-20
资源大小:1169k
文件大小:5k
源码类别:

传真(Fax)编程

开发平台:

C/C++

  1. ." $Id: pagesend.1m,v 1.2 2007/08/15 20:14:11 faxguy Exp $
  2. ."
  3. ." HylaFAX Facsimile Software
  4. ."
  5. ." Copyright (c) 1994-1996 Sam Leffler
  6. ." Copyright (c) 1994-1996 Silicon Graphics, Inc.
  7. ." HylaFAX is a trademark of Silicon Graphics
  8. ." 
  9. ." Permission to use, copy, modify, distribute, and sell this software and 
  10. ." its documentation for any purpose is hereby granted without fee, provided
  11. ." that (i) the above copyright notices and this permission notice appear in
  12. ." all copies of the software and related documentation, and (ii) the names of
  13. ." Sam Leffler and Silicon Graphics may not be used in any advertising or
  14. ." publicity relating to the software without the specific, prior written
  15. ." permission of Sam Leffler and Silicon Graphics.
  16. ." 
  17. ." THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  18. ." EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  19. ." WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  20. ." 
  21. ." IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  22. ." ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  23. ." OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  24. ." WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  25. ." LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  26. ." OF THIS SOFTWARE.
  27. ."
  28. .if n .po 0
  29. .ds Fx fIHylas-1FAXs+1fP
  30. .TH PAGESEND ${MANNUM1_8} "October 3, 1995"
  31. .SH NAME
  32. pagesend - *(Fx IXO/TAP and UCP transmit program
  33. .SH SYNOPSIS
  34. .B ${LIBEXEC}/pagesend
  35. [
  36. .B -l
  37. ] [
  38. .B -p
  39. ] [
  40. .B -c
  41. .I config
  42. ]
  43. .B -m
  44. .I device-ID
  45. .I qfile
  46. .SH DESCRIPTION
  47. .I pagesend
  48. is the program that implements the
  49. .SM IXO/TAP
  50. and the
  51. .SM UCP
  52. transmission protocol for the *(Fx system.
  53. .I pagesend
  54. is invoked by the
  55. .I faxq
  56. scheduler process for each pager transmit attempt.
  57. .I pagesend
  58. assumes that its current working directory is the top of
  59. the spooling hierarchy and that a suitable modem device
  60. has been allocated for its use.
  61. In normal use
  62. .I pagesend
  63. will inherit a lockfile for the modem from the
  64. .I faxq
  65. process.
  66. The format of the job description file specified on the
  67. command line is described in
  68. .IR sendq (${MANNUM4_5}).
  69. .PP
  70. .I pagesend
  71. initializes the modem before attempting to transmit the pager message
  72. using the information in the appropriate modem configuration file.
  73. If the modem does not respond to this initialization,
  74. .I pagesend
  75. will repeatedly try to initialize the modem.
  76. This behaviour is required for send-only environments in which a
  77. .IR faxgetty (${MANNUM1_8})
  78. process is not run (and the modem would be known to be in a
  79. properly initialized state).
  80. .I pagesend
  81. catches
  82. .SM SIGINT
  83. and
  84. .SM SIGTERM
  85. and cleans up any resources it controls; this is the mechanism
  86. used by
  87. .I faxq
  88. to abort a job while it is in progress.
  89. .PP
  90. Many aspects of
  91. .I pagesend
  92. operation are controlled through a configuration file.
  93. The configuration file is located in the spooler hierarchy
  94. in the
  95. .B etc
  96. subdirectory and is named
  97. .BI config. device-ID ;
  98. consult
  99. .IR hylafax-config (${MANNUM4_5})
  100. for detailed information on the contents of configuration files.
  101. .PP
  102. The protocol which must be used for a specific service provider
  103. is controlled from the
  104. .IR hylafax-info (${MANNUM4_5})
  105. file.
  106. .SH OPTIONS
  107. .TP 10
  108. .BI -c " config"
  109. Treat
  110. .I config
  111. as a configuration parameter specification that is interpreted
  112. after reading the per-device configuration file.
  113. For example, ``-c sessiontracing:0x4f'' would set the
  114. .B SessionTracing
  115. configuration parameter to ``0x4f'', overriding any setting in
  116. the configuration file.
  117. .TP 10
  118. .BI -m " devID"
  119. The device to use in processing the job.
  120. Note that this is a fIdevice identifierfP and not the
  121. pathname of the tty special file.
  122. A device identifier is formed from a device filename by removing
  123. any leading ``/dev/'' and converting any ``/'' characters to ``_''
  124. characters.
  125. .TP 10
  126. .B -l
  127. Do the
  128. .SM UUCP
  129. lockfile protocol in
  130. .IR pagesend .
  131. By default
  132. .I pagesend
  133. assumes that it is invoked with the device already locked
  134. and that it does not need to manage the lockfile.
  135. .TP 10
  136. .B -p
  137. Do not change the process priority when transmitting.
  138. Normally
  139. .I pagesend
  140. will raise its priority to reduce i/o latency.
  141. This option is useful for debugging.
  142. .SH NOTES
  143. .I pagesend
  144. returns the new job status to
  145. .I faxq
  146. through the
  147. .IR exit (2)
  148. return value of the process:
  149. .I send_retry
  150. (0), retry job;
  151. .I send_failed
  152. (1), job finished without success,
  153. .I send_done
  154. (2), job completed successfully,
  155. .I send_reformat
  156. (3), job should be retried after documents are reformatted.
  157. .SH FILES
  158. ${SPOOL}/etc/config.devID device-specific configuration file
  159. .PP
  160. Consult
  161. .IR hylafax-server (${MANNUM4_5})
  162. for a complete discussion of the structure and
  163. content of the spooling area.
  164. .SH "SEE ALSO"
  165. .IR faxq (${MANNUM1_8}),
  166. .IR hylafax-server (${MANNUM4_5}),
  167. .IR hylafax-config (${MANNUM4_5}),
  168. .IR hylafax-info (${MANNUM4_5})