home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / de / comp / os / xenix / 140 < prev    next >
Encoding:
Text File  |  1993-01-02  |  7.8 KB  |  301 lines

  1. Newsgroups: de.comp.os.xenix
  2. Path: sparky!uunet!math.fu-berlin.de!ira.uka.de!smurf.sub.org!flatlin!bad
  3. From: bad@flatlin.ka.sub.org (Christoph Badura)
  4. Subject: Re: /usr/lib/cron/queuedefs Aufbau ?
  5. Organization: Guru Systems/Funware Department
  6. Date: Sat, 2 Jan 1993 18:05:57 GMT
  7. Message-ID: <C08nLy.3s4@flatlin.ka.sub.org>
  8. References: <2574@rnivh.rni.sub.org>
  9. Lines: 290
  10.  
  11. In <2574@rnivh.rni.sub.org> root@rnivh.rni.sub.org (Torsten Leibold) writes:
  12.  
  13. >Herrje, diese daemlichen Manuals rauben mir mal wieder den letzten
  14. >Nerv. Jetzt habe ich 2 Stunden versucht einen Hinweis zu finden, wie
  15. >diese Datei aufgebaut werden muss, damit bei mir nicht staendig diese
  16. >Meldung 'b queue max run limit reached ...' erscheint.
  17. >Kann mir da jemand weiterhelfen ?? Vielleicht ist es ja gar nicht so
  18. >schwer ... Sieht zumindest recht einfach aus ...
  19.  
  20. >From: guy@Auspex.COM (Guy Harris)
  21. >Newsgroups: comp.unix.admin
  22. >Subject: Re: Help with SYSV queuedefs(5)
  23. >Keywords: cron,queuedefs,man
  24. >Message-ID: <12145@auspex-gw.auspex.com>
  25. >Date: 14 Mar 92 02:52:51 GMT
  26. >References: <1992Mar12.131615.6471@essnj3.essnjay.com>
  27. >Sender: news@auspex-gw.auspex.com
  28. >Organization: Auspex Systems, Santa Clara
  29. >Lines: 270
  30. >Nntp-Posting-Host: auspex.auspex.com
  31.  
  32. >>I have been unable to nail down queuedefs(5) in first, second or third
  33. >>party documentation re SYSV.
  34.  
  35. Here's the man page I wrote for "queuedefs", ages ago, and put into
  36. SunOS at some point; if AT&T hasn't yet picked it up, they should do so.
  37.  
  38. Now, since you say "queuedefs(5)", rather than "queuedefs(4)", you may
  39. be running an OS with V7-style manual page section numbers, rather than
  40. SV-style.  One such OS is SunOS, but there's been a "queuedefs(5)" since
  41. SunOS 4.1, at least.  In any case, *these* manual pages - I'm sticking
  42. in "proto(4)" as well - are for SVR3, and if your system isn't vanilla
  43. SVR3, they may have to be modified.
  44.  
  45. #! /bin/sh
  46. # This is a shell archive.  Remove anything before this line, then unpack
  47. # it by saving it into a file and typing "sh file".  To overwrite existing
  48. # files, type "sh file -c".  You can also feed this as standard input via
  49. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  50. # will see the following message at the end:
  51. #        "End of shell archive."
  52. # Contents:  proto.4 queuedefs.4
  53. # Wrapped by guy@bootme on Sat Feb  4 15:06:52 1989
  54. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  55. if test -f 'proto.4' -a "${1}" != "-c" ; then 
  56.   echo shar: Will not clobber existing file \"'proto.4'\"
  57. else
  58. echo shar: Extracting \"'proto.4'\" \(2033 characters\)
  59. sed "s/^X//" >'proto.4' <<'END_OF_FILE'
  60. X.TH PROTO 4
  61. X.SH NAME
  62. Xproto \- prototype job file for at
  63. X.SH SYNOPSIS
  64. X.LP
  65. X.B /usr/lib/cron/.proto
  66. X.LP
  67. X.BI /usr/lib/cron/.proto. queue
  68. X.SH DESCRIPTION
  69. X.LP
  70. XWhen a job is submitted to
  71. X.IR at (1)
  72. Xor
  73. X.IR batch (1),
  74. Xthe job is constructed as a shell script.  First, a prologue is
  75. Xconstructed, consisting of:
  76. X.IP \(bu 3
  77. XA header specifying whether the job is an
  78. X.I at
  79. Xjob or a
  80. X.I batch
  81. Xjob;
  82. X.IP \(bu
  83. XA set of Bourne shell commands to make the environment (see
  84. X.IR environ (4))
  85. Xfor the
  86. X.I at
  87. Xjob the same as the current environment.
  88. X.LP
  89. X.I at
  90. Xthen reads a \*(lqprototype file,\*(rq and constructs the rest of the
  91. Xjob file from it.
  92. X.LP
  93. XText from the prototype file is copied to the job file, except for
  94. Xspecial \*(lqvariables\*(rq that are replaced by other text:
  95. X.RS
  96. X.TP
  97. X.B $d
  98. Xis replaced by the current working directory
  99. X.PD 0
  100. X.TP
  101. X.B $l
  102. Xis replaced by the current file size limit (see
  103. X.IR ulimit (2))
  104. X.TP
  105. X.B $m
  106. Xis replaced by the current umask (see
  107. X.IR umask (2))
  108. X.TP
  109. X.B $t
  110. Xis replaced by the time at which the job should be run, expressed as seconds
  111. Xsince January 1, 1970, 00:00 Greenwich Mean Time, preceded by a colon
  112. X.TP
  113. X.B $<
  114. Xis replaced by text read by
  115. X.I at
  116. Xfrom the standard input (that is, the commands provided to
  117. X.I at
  118. Xto be run in the job)
  119. X.PD
  120. X.RE
  121. X.LP
  122. XIf the job is submitted in queue
  123. X.IR queue ,
  124. X.I at
  125. Xuses the file
  126. X.BI /usr/lib/cron/.proto. queue
  127. Xas the prototype file if it exists, otherwise it will use the file
  128. X.BR /usr/lib/cron/.proto .
  129. X.SH EXAMPLES
  130. XThe standard
  131. X.B .proto
  132. Xfile supplied with System V is:
  133. X.LP
  134. X.RS
  135. X.nf
  136. X.ft B
  137. X#ident    "@(#)adm:.proto    1.2"
  138. Xcd $d
  139. Xulimit $l
  140. Xumask $m
  141. X$<
  142. X.ft R
  143. X.fi
  144. X.RE
  145. X.LP
  146. Xwhich causes commands to change the current directory in the job to the
  147. Xcurrent directory at the time
  148. X.I at
  149. Xwas run, to change the ulimit in the job to the ulimit at the time
  150. X.I at
  151. Xwas run, and to change the umask in the job to the umask at the time
  152. X.I at
  153. Xwas run, to be inserted before the commands in the job.
  154. X.SH FILES
  155. X.PD 0
  156. X.TP 20
  157. X.B /usr/lib/cron/.proto
  158. X.LP
  159. X.BI /usr/lib/cron/.proto. queue
  160. X.PD 
  161. X.SH "SEE ALSO"
  162. X.IR at (1)
  163. END_OF_FILE
  164. if test 2033 -ne `wc -c <'proto.4'`; then
  165.     echo shar: \"'proto.4'\" unpacked with wrong size!
  166. fi
  167. # end of 'proto.4'
  168. fi
  169. if test -f 'queuedefs.4' -a "${1}" != "-c" ; then 
  170.   echo shar: Will not clobber existing file \"'queuedefs.4'\"
  171. else
  172. echo shar: Extracting \"'queuedefs.4'\" \(2386 characters\)
  173. sed "s/^X//" >'queuedefs.4' <<'END_OF_FILE'
  174. X.TH QUEUEDEFS 4
  175. X.SH NAME
  176. Xqueuedefs \- queue description file for at, batch, and cron
  177. X.SH SYNOPSIS
  178. X.LP
  179. X.B /usr/lib/cron/queuedefs
  180. X.SH DESCRIPTION
  181. X.LP
  182. XThe
  183. X.B queuedefs
  184. Xfile describes the characteristics of the queues managed by
  185. X.IR cron (1M).
  186. XEach non-comment line in this file describes one queue.
  187. XThe format of the lines are as follows:
  188. X.RS
  189. X.LP
  190. X\fIq\fB.\fR[\fInjob\fBj\fR][\fInice\fBn\fR][\fInwait\fBw\fR]
  191. X.RE
  192. X.LP
  193. XThe fields in this line are:
  194. X.RS
  195. X.TP
  196. X.I q
  197. XThe name of the queue.
  198. X.B a
  199. Xis the default queue for jobs started by
  200. X.IR at (1);
  201. X.B b
  202. Xis the default queue for jobs started by
  203. X.I batch
  204. X(see
  205. X.IR at (1));
  206. X.B c
  207. Xis the default queue for jobs run from a
  208. X.IR crontab (4)
  209. Xfile.
  210. X.TP
  211. X.I njob
  212. XThe maximum number of jobs that can be run simultaneously in that queue; if
  213. Xmore than
  214. X.I njob
  215. Xjobs are ready to run, only the first
  216. X.I njob
  217. Xjobs will be run, and the others will be run as jobs that are currently running
  218. Xterminate.  The default value is 100.
  219. X.TP
  220. X.I nice
  221. XThe
  222. X.IR nice (1)
  223. Xvalue to give to all jobs in that queue that are not run with a user
  224. X.SM ID
  225. Xof super-user.  The default value is 2.
  226. X.TP
  227. X.I nwait
  228. XThe number of seconds to wait before rescheduling a job that was deferred
  229. Xbecause more than
  230. X.I njob
  231. Xjobs were running in that job's queue, or because more than 25 jobs were
  232. Xrunning in all the queues.  The default value is 60.
  233. X.RE
  234. X.LP
  235. XLines beginning with
  236. X.B #
  237. Xare comments, and are ignored.
  238. X.SH EXAMPLE
  239. X.RS
  240. X.nf
  241. X.ft B
  242. Xa.4j1n
  243. Xb.2j2n90w
  244. X.RE
  245. X.fi
  246. X.ft R
  247. X.LP
  248. XThis file specifies that the
  249. X.B a
  250. Xqueue, for
  251. X.I at
  252. Xjobs, can have up to 4 jobs running simultaneously; those jobs will be run with
  253. Xa
  254. X.B nice
  255. Xvalue of 1.  As no
  256. X.I nwait
  257. Xvalue was given, if a job cannot be run because too many other jobs are running
  258. X.I cron
  259. Xwill wait 60 seconds before trying again to run it.
  260. XThe
  261. X.B b
  262. Xqueue, for
  263. X.I batch
  264. Xjobs, can have up to 2 jobs running simultaneously; those jobs will be run with
  265. Xa
  266. X.I nice
  267. Xvalue of 2.  If a job cannot be run because too many other jobs are running,
  268. X.I cron
  269. Xwill wait 90 seconds before trying again to run it.
  270. XAll other queues can have up to 100 jobs running simultaneously; they will be
  271. Xrun with a
  272. X.I nice
  273. Xvalue of 2, and if a job cannot be run because too many other jobs are running
  274. X.I cron
  275. Xwill wait 60 seconds before trying again to run it.
  276. X.SH FILES
  277. X.PD 0
  278. X.TP 20
  279. X.B /usr/lib/cron/queuedefs
  280. X.PD 
  281. X.SH "SEE ALSO"
  282. X.IR at (1),
  283. X.IR nice (1),
  284. X.IR crontab (4),
  285. X.IR cron (1M)
  286. END_OF_FILE
  287. if test 2386 -ne `wc -c <'queuedefs.4'`; then
  288.     echo shar: \"'queuedefs.4'\" unpacked with wrong size!
  289. fi
  290. chmod +x 'queuedefs.4'
  291. # end of 'queuedefs.4'
  292. fi
  293. echo shar: End of shell archive.
  294. exit 0
  295.  
  296. -- 
  297.                 Christoph Badura  ---  bad@flatlin.ka.sub.org
  298.  
  299. AIX is a better... is a better...  is a better... OpenSystem.
  300.                     IBM Rep at GUUG Symposium '92
  301.