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

传真(Fax)编程

开发平台:

C/C++

  1. ." $Id: faxcron.1m,v 1.4 2008/10/13 05:09:02 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 FAXCRON ${MANNUM1_8} "May 12, 1996"
  31. .SH NAME
  32. faxcron - *(Fx routine maintenance script
  33. .SH SYNOPSIS
  34. .B ${SBIN}/faxcron
  35. [
  36. .B -n
  37. ] [
  38. .B -l
  39. .I lastrun
  40. ]
  41. .SH DESCRIPTION
  42. .B faxcron
  43. is a command script that does routine upkeep tasks in a *(Fx
  44. spooling directory hierarchy.
  45. This script is intended to be invoked from
  46. .IR cron (${MANNUM1_8})
  47. on behalf of the fax user (often the ``fax'' user is uucp) once a day,
  48. with the standard output sent by mail to the *(Fx administrator.
  49. For example, the following crontab might be set up for the fax user:
  50. .sp .5
  51. .nf
  52. .ti +.2i
  53. fC25   23    *    *    *   sh ${SBIN}/faxcron | mail FaxMasterfP
  54. .fi
  55. .PP
  56. The
  57. .I faxcron
  58. script does the following work:
  59. .IP (bu 3
  60. report statistics for facsimile transmitted since the last time 
  61. .I faxcron
  62. was run.
  63. .IP (bu 3
  64. report statistics for facsimile transmitted in the past week.
  65. .IP (bu 3
  66. report statistics for facsimile received since the last time
  67. .I faxcron
  68. was run.
  69. .IP (bu 3
  70. report statistics for facsimile received in the past week.
  71. .IP (bu 3
  72. report any recent calls that failed suspiciously and return the associated trace log;
  73. .IP (bu 3
  74. purge data that is 30 days or older from the remote machine information directory;
  75. .IP (bu 3
  76. delete information that is 30 days or older from session trace log files;
  77. .IP (bu 3
  78. remove files from the tmp directory that are older than 1 day;
  79. .IP (bu 3
  80. remove files in the received facsimile queue that are 7 days or older;
  81. .IP (bu 3
  82. report sites that are currently having jobs rejected; and
  83. .IP (bu 3
  84. force all session log files to be owned by the fax user
  85. and kept with protection mode 644.
  86. .SH OPTIONS
  87. .TP 10
  88. .B -n
  89. Forces
  90. .I faxcron
  91. to run without updating any files.
  92. .TP 10
  93. .BI -l " lastrun"
  94. Forces the notion of the last time that
  95. .I faxcron
  96. was run to be 
  97. .IR lastrun .
  98. The value of 
  99. .I lastrun
  100. is a date and time string of the form ``MM/DD/YY HH:MM'' (the
  101. .IR date (1)
  102. format string ``%D %H:%M'').
  103. .TP 10
  104. .BI -q " spool"
  105. Specify the location of the *(Fx spool directory.
  106. .TP 10
  107. .BI -info " n"
  108. Set the expiration time for data in the info database to be
  109. .I n
  110. days.
  111. .TP 10
  112. .BI -log " n"
  113. Set the expiration time for session log data to be
  114. .I n
  115. days.
  116. .TP 10
  117. .BI -rcv " n"
  118. Set the expiration time for files in the received facsimile queue to be
  119. .I n
  120. days.
  121. .TP 10
  122. .BI -tmp " n"
  123. Set the expiration time for files in the tmp directory to be
  124. .I n
  125. days.
  126. .TP 10
  127. .BI -mode " m"
  128. Set the file protection mode for session logs to 
  129. .IR m
  130. (a command line argument to 
  131. .IR chmod (1)).
  132. .SH NOTES
  133. This script requires
  134. .IR nawk (1)
  135. or
  136. .IR gawk (1)
  137. and a
  138. .I date (1)
  139. program that supports the ``+format'' option.
  140. .PP
  141. If session logs are to be kept private this script must be modified
  142. to filter out sensitive information such as calling card numbers.
  143. (It should also be run with ``-mode 0600'' so that
  144. session log files are not publicly readable.)
  145. .SH FILES
  146. .nf
  147. .ta w'${SPOOL}/etc/xferfaxstats    'u
  148. ${SPOOL} spooling area
  149. ${SPOOL}/etc/lastrun timestamp of last run
  150. ${SBIN}/xferfaxstats for generating transmit statistics
  151. ${SBIN}/recvstats for generating receive statistics
  152. ${SPOOL}/tmp/faxcronXXXX temporary file for truncating session logs
  153. ${SPOOL}/tmp/faxlogXXXX temporary file for logs of failed calls
  154. .fi
  155. .SH "SEE ALSO"
  156. .IR cron (${MANNUM1_8}),
  157. .IR faxq (${MANNUM1_8}),
  158. .IR faxgetty (${MANNUM1_8}),
  159. .IR faxsend (${MANNUM1_8}),
  160. .IR xferfaxstats (${MANNUM1_8}),
  161. .IR recvstats (${MANNUM1_8}),
  162. .IR hylafax-server (${MANNUM4_5})