home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume36 / jobs / part02 < prev    next >
Encoding:
Text File  |  1993-03-21  |  22.8 KB  |  570 lines

  1. Newsgroups: comp.sources.misc
  2. From: jim@nestmoi.rain.com (Jim Chorn)
  3. Subject: v36i021:  jobs - misc.jobs Employment Search toolkit, Part02/02
  4. Message-ID: <1993Mar19.200623.9677@sparky.imd.sterling.com>
  5. X-Md4-Signature: ea28314bdd4b4fdbcfedf99e3308a443
  6. Date: Fri, 19 Mar 1993 20:06:23 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: jim@nestmoi.rain.com (Jim Chorn)
  10. Posting-number: Volume 36, Issue 21
  11. Archive-name: jobs/part02
  12. Environment: news, sh
  13.  
  14. #! /bin/sh
  15. # This is a shell archive.  Remove anything before this line, then feed it
  16. # into a shell via "sh file" or similar.  To overwrite existing files,
  17. # type "sh file -c".
  18. # Contents:  Comments Help Readme install joblists
  19. # Wrapped by kent@sparky on Fri Mar 19 13:59:43 1993
  20. PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin ; export PATH
  21. echo If this archive is complete, you will see the following message:
  22. echo '          "shar: End of archive 2 (of 2)."'
  23. if test -f 'Comments' -a "${1}" != "-c" ; then 
  24.   echo shar: Will not clobber existing file \"'Comments'\"
  25. else
  26.   echo shar: Extracting \"'Comments'\" \(338 characters\)
  27.   sed "s/^X//" >'Comments' <<'END_OF_FILE'
  28. X
  29. XThis job listing was provided by an automated tool which collect
  30. Xand organizes Usenet Articles from misc.jobs news groups, updated
  31. Xweekly.
  32. X
  33. XAny comments should be directed to jobs@nestmoi.rain.com via e-mail.
  34. X
  35. XThe usual disclaimers apply.... Good Hunting!
  36. X________________________________________________________________________________
  37. END_OF_FILE
  38.   if test 338 -ne `wc -c <'Comments'`; then
  39.     echo shar: \"'Comments'\" unpacked with wrong size!
  40.   fi
  41.   # end of 'Comments'
  42. fi
  43. if test -f 'Help' -a "${1}" != "-c" ; then 
  44.   echo shar: Will not clobber existing file \"'Help'\"
  45. else
  46.   echo shar: Extracting \"'Help'\" \(1373 characters\)
  47.   sed "s/^X//" >'Help' <<'END_OF_FILE'
  48. X---------------------------------
  49. XAreas: A pattern to search for, case insensitive.
  50. XExtendedArea: A Subject line pattern case sensitive, auto-includes Areas.
  51. X    These patterns group into the bulk of the first summary in the listing.
  52. X    Area patterns which are not in the Subject line, group into the body of
  53. X    the second Summary in the listing.
  54. XNeverSee: A pattern you *never* want to allow case *sensitive*
  55. XOtherDisregard: A pattern which is not in the ExtendedArea that will cause the
  56. X    article to be removed from the second Summary in the listing.
  57. XDisregard: A special three field pattern which will cause articles to only be
  58. X    summarized in the second Summary of the listing if 'WhoPat' is detected
  59. X    in an article, the summary line presented is "SummaryPat' '".
  60. X    This Summary is followed by Contact_info.
  61. XSpooledNewsDir: Top Level directory of the articles.
  62. XPostedGroups: A list of all news groups to be searched.
  63. X---------------------------------
  64. XTo insert a space into a pattern, use ^[ or <ESC>
  65. XThe single quote character is handled, all other sh special characters may
  66. X    not be. In particular, the asterisk is not handled for Area
  67. X    or ExtendedArea.  Try using \\Char. There are up to three levels of
  68. X    shell to be escaped so you may need six or more backslashs depending
  69. X    on your version of sh.
  70. X-----Pattern Commands: A-Add D-Delete C-Clearall General: Q-Quit S-Show H-Help
  71. END_OF_FILE
  72.   if test 1373 -ne `wc -c <'Help'`; then
  73.     echo shar: \"'Help'\" unpacked with wrong size!
  74.   fi
  75.   # end of 'Help'
  76. fi
  77. if test -f 'Readme' -a "${1}" != "-c" ; then 
  78.   echo shar: Will not clobber existing file \"'Readme'\"
  79. else
  80.   echo shar: Extracting \"'Readme'\" \(13475 characters\)
  81.   sed "s/^X//" >'Readme' <<'END_OF_FILE'
  82. XCopyRight 1993 James Chorn All Rights Reserved.
  83. XThis work is wholely owned by James Chorn.
  84. XPermission is given to use and copy the tools described and included
  85. Xherein with the following proviso:
  86. XProviso: You will not litigate against James Chorn for misuse, destruction
  87. X    of property informational or otherwise, and you give James Chorn
  88. X    credit for producing these tools by always including this copyright
  89. X    notice prominently in all copies and distributions.
  90. XNo Warrantee is implied or Expressed and this software is provided 'as is'.
  91. XJames Chorn will not be held accountable for any problem associated with the
  92. Xuse of this software.
  93. X
  94. XThis work was done in support of a support group which is locally organized
  95. Xby under-employed high tech workers here in Portland, OR.
  96. X
  97. XAdministrative Note:
  98. X    The intent of the use of these tools is to provide people
  99. X    which don't have access to the internet a way to receive
  100. X    job information.  Please limit using the E-mail feature to
  101. X    people or groups which don't have access to the Internet
  102. X    news services who will distribute the reports generated to
  103. X    people seeking employment. Ask your system administrator.
  104. X    This tool is not meant as a news reader replacement utility.
  105. X    Every effort was made to make these tools passive in nature,
  106. X    namely the use of rm is limited to temporary files.
  107. X
  108. XInternet job article report and maintenance tool.
  109. X    Use of this tool requires an Internet net news feed.
  110. X
  111. XInstallation:
  112. X    ./install [/installdir]
  113. X
  114. XFeatures:
  115. X    Provides a way to collect and summarize Internet job related articles.
  116. X    Is customizable to capture job information for a local area(s).
  117. X    Report style job listings that produce well organized article lists.
  118. X    Flexible configuration, reconfiguration and setup.
  119. X    Flexible and easy filtering of unwanted articles.
  120. X    Easy summation of redundant information.
  121. X    Reports can be printed or Emailed automatically via 'at' or 'cron'.
  122. X    Customizably Final Comment feature allowing other admin info sharing.
  123. X    80 Column ASCII Report style suitable for laser printing.
  124. X    Optional saving of past listings by simple creation of a directory.
  125. X    Portable.
  126. X
  127. XNon-features:
  128. X    It ain't fast ;-) Typical run times have been observed at
  129. X        between 10 and 20 minutes depending on the number
  130. X        of articles needed to be processed (some maybe longer).
  131. X    Does not provide a news article feed. You must be receiving
  132. X        net news in order to use this tool.
  133. X    Does not provide a 'no' maintenance solution to article classification.
  134. X    Does not provide an easy way to remove articles using multiple
  135. X        word patterns which span lines. eg "I am\n seeking"
  136. X    Does not currently provide a way to handle summarizing lines that
  137. X        have no key's (See Disregard section).
  138. X
  139. XOperational comments:
  140. X    I've been using this tool to send posts via email to the High Tech
  141. X    Resources Group in Portland, OR (a local job hunting support group).
  142. X    The person receiving the email simply prints it out and
  143. X    brings it to the group meetings each week. Some editing has been
  144. X    done on the reports during trial runs but this is next to nothing
  145. X    compared with the time I was spending doing these same functions
  146. X    manually. The editing time is virtually non-existent with this
  147. X    release so it's time to share. I should also note that most of the
  148. X    editing usually concerns bogus postings which get captured
  149. X    in the last part of the report. Removing these postings was a matter
  150. X    of saving paper and reading time. I currently monitor the reports
  151. X    by running two passes. The first pass sends me 90% of the report
  152. X    that will be sent the next day. I look it over and if needed add
  153. X    filtering information to the setup file which generates the report
  154. X    that goes to the HTRG. I see the report sunday night and early monday
  155. X    morning the reports are sent out. So far, the tools works pretty well
  156. X    and doesn't miss many articles. Typically, the articles that are
  157. X    dropped, have terse location information, but if your desperate,
  158. X    just put some very general Area in like OR as you will get every
  159. X    job article with the word 'or' in it. Another for instance, in the
  160. X    setup.newyork file, notice that NY is not part of Area. That's
  161. X    because 'any' matches 'ny'. So it's an ExtendedArea, but I'm
  162. X    getting ahead of myself. You will need to check on the postings
  163. X    and adjust the filters which means a 2 minute scan of a posting
  164. X    and maybe using maintjobs to add a filter on some of the articles
  165. X    that you don't want to see. Just remember that the more Areas
  166. X    you have to search for, the longer it will take.
  167. X
  168. X    To save previous listings simply make the directory LastSaved
  169. X    in the listing directory and your cron job will do it automatically.
  170. X    See the joblists script for details.
  171. X
  172. X    The setup files contain character sequences '^' '[' which is normal.
  173. X
  174. X    This tool was built in a 4.3BSD Unix environment and may
  175. X    not function in other environments without some modifications.
  176. X    Namely, these scripts will probably require modification
  177. X    for SysV to handle grep case insensitivity (pre V.4) and probably
  178. X    others. I would appreciate feedback on these.  See listjobs
  179. X    shell script.
  180. X
  181. XThis directory includes:
  182. X    listjobs [setupfile]    - A shell script to collect job info.
  183. X    maintjobs setupfile    - A shell script to maintain setup files.
  184. X    joblists        - A cron script for auto run of listjobs.
  185. X    setup.default        - The default setup file.
  186. X    setup.example        - A second example of a setup file.
  187. X    setup.newyork        - A functional NY/NJ setup file.
  188. X    Comments        - Initial Final Comment file.
  189. X    Help            - Initial Help file, customizable to site.
  190. X    install    [/installdir]    - An install script, default /usr/local/jobs.
  191. X    Readme            - This file.
  192. X
  193. XRequired Unix(tm) commands:
  194. X    /bin/date    /bin/ed sh    test    chmod    awk
  195. X    mv        rm    echo    cat    touch    sort
  196. X    cmp        tr    sed    grep    egrep    uniq
  197. X    Non-standard commands:
  198. X    fmt        head    tail    wc
  199. X
  200. XAssumptions:
  201. X    Comments in all setup and final comment files consist of an
  202. X    occurrence of '#' at the beginning of a line and go until
  203. X    the end of that line.
  204. X
  205. X    All scripts assume to be located in /usr/local/jobs. You
  206. X    must explicitly modify a variable in each script to install
  207. X    them in another place.
  208. X
  209. X    All scripts assume that the news is collected in a /usr/spool/news
  210. X    subdirectory. You must explicitly modify a variable in each
  211. X    script to have them look in another place for the top level
  212. X    news directory.  The scripts are flexible enough to handle
  213. X    most subdirectory variations but you may need to use more
  214. X    than one setup file.
  215. X
  216. XAbstractions and other comments on the comments:
  217. X    Most of the concept is very straight forward, however, the way
  218. X    it is presented could be improved. I'm open to suggestions on
  219. X    constructive modifications of the comments in the scripts and
  220. X    setup files.
  221. X
  222. XWhat's the What and how it works:
  223. X    There are eight major shell variables that need to come from
  224. X    somewhere. These are:
  225. X        SpooledNewsDir
  226. X        PostedGroups
  227. X        Area
  228. X        ExtendedArea
  229. X        NeverTrust
  230. X        OtherDisregard
  231. X        Disregard
  232. X        Ext
  233. X
  234. X    The maintjobs tool maintains these variables in a interactive session.
  235. X    The listjobs tool uses the setup script to bring in these variables
  236. X    which cause it to modify builtin defaults.
  237. X    The joblists tool is described below.
  238. X
  239. X    Overview: The joblists script is invoked by cron at some hour. joblists
  240. X          invokes listjobs script which produces one or several reports.
  241. X          joblists then emails or prints the reports out and exit's.
  242. X          joblists also compresses and saves old reports as needed.
  243. X          Messages and tracting information is captured in the files
  244. X          'messages' and 'Sent' in the jobs directory.
  245. X
  246. X          listjobs when invoked brings in it's setup file variables
  247. X          and applies these variables to all articles found in the
  248. X          news directories. All of this work is done in /tmp and
  249. X          is removed on error or completion. A report is built and
  250. X          then copied into the 'jobs' directory /usr/local/jobs.
  251. X          A file called 'Date' in the jobs directory is updated with
  252. X          the prefix of the report name generated. The file 'Comments'
  253. X          which lives in the jobs directory will be concatenated to
  254. X          the report. If this file does not exist the default Final
  255. X          Comment will be used. If a Comment file has an extension
  256. X          (eg Comments.default), this file will be used instead.
  257. X
  258. X          maintjobs is used to maintain the variables and test them
  259. X          so that special characters that won't work in the scripts
  260. X          are detected before using them. This is so the listjobs
  261. X          script doesn't blow up needlessly and not produce a report
  262. X          when invoked by joblists by cron. maintjobs makes a copy
  263. X          of the lines in the setup file modified and always leaves
  264. X          it in the setup file so after numerous uses you will probably
  265. X          want to hand edit the setup file to remove all of the copies.
  266. X          The copies will never hurt operation of listjobs. maintjobs
  267. X          will also in some cases correct bad setup files. This was
  268. X          mainly done for script maintenance and ease of upgrade.
  269. X
  270. X    Report Format:
  271. X        Summary of Local Area posts.
  272. X        All Local Area posts.
  273. X        Summary of Disregards (See definition below).
  274. X        Summary of Other Local area posts.
  275. X        All Other Local Area posts.
  276. X        Final Comment Information.
  277. X
  278. X
  279. X    Variable Definitions:
  280. X
  281. X    SpooledNewsDir    -is the top most directory that contains targeted
  282. X             job articles. This is *not* where the articles are
  283. X             kept. This is were the directories of the articles
  284. X             are kept.
  285. X    PostedGroups    -is a list of the directories which contain job
  286. X             articles. 
  287. X             eg. misc.jobs.offered is simply 'offered'
  288. X    Area        -is a list of words which describe your focus area.
  289. X             For example "Portland Oregon" will capture all
  290. X             articles which contain the word Portland OR the
  291. X             word Oregon, case insensitive.
  292. X    ExtendedArea    -is a list superset of case sensitive words which
  293. X             might appear in subject lines captured from looking
  294. X             for the 'Area' words. This helps classify articles,
  295. X             especially those using proper net-etiquette.
  296. X    NeverTrust    -is a list of words which identify articles that 
  297. X             are bogus or inappropriate for the report. Any
  298. X             article which contains a word in this list will
  299. X             *NOT* appear in the report, so use this sparingly.
  300. X             An email address or unique word from the subject
  301. X             line is best used here.
  302. X    OtherDisregard    -is a list of words that get filtered out of the
  303. X             'other' section of the report. It's similar to
  304. X             NeverTrust, removes articles from the report.
  305. X             It's main use is for posters that are consistent
  306. X             with their articles. For example, some local recruiters
  307. X             post for jobs and *always* identify the city the
  308. X             job is located. They also post for jobs in other
  309. X             parts of the world. This variable allows you to
  310. X             filter out these other-parts-of-the-world jobs
  311. X             and rely on the poster's subject line. Occasionally
  312. X             you will need to modify this variable.
  313. X    Disregard    -is a three piece variable which allows you to
  314. X             remove redundant information from the report. You
  315. X             may have someone that provides you with the
  316. X             information from another source, like presentations...
  317. X             Anyway, this evolved from our group having a person
  318. X             recruiting in the group as well as posting news
  319. X             articles. We wanted the news articles summarized
  320. X             and we wanted to spread his phone number around
  321. X             when he got active. It works like this:
  322. X             firm summary contact
  323. X                 where firm is a word that will always
  324. X                    identify this persons articles.
  325. X                 where summary is a word that will always
  326. X                    select a position summary line
  327. X                    (eg. Subject, Position, Description...)
  328. X                    This will capture all lines with this
  329. X                    key, however it does not have the
  330. X                    ability to handle titles which appear
  331. X                    with in a banner eg ***\n title\n ---
  332. X                 where contact is a single word used for contact
  333. X                    information. See a setup file for
  334. X                    more uses, it's better described there.
  335. X    Ext        -is a single word which identifies the file name
  336. X             extension used for the report to be generated.
  337. X             Multiple reports dictate multiple setup files although
  338. X             you will probably find that now more than two or three
  339. X             are needed for your area.
  340. X
  341. XThe default setup file variables are set as follows:
  342. X
  343. X    SpooledNewsDir="/usr/spool/news/misc/jobs"
  344. X    PostedGroups="contract/* offered/* offered/entry/*"
  345. X    Area="Portland Hillsboro Beaverton Aloha Oregon"
  346. X    ExtendedArea="${Area} OR"
  347. X    NeverTrust=none
  348. X    OtherDisregard="none"
  349. X    Disregard=none
  350. X    Ext=""
  351. X
  352. XFor more convoluted information read the comments in the setup files and
  353. Xwhen you get frustrated go to the source which is fairly well commented.
  354. X
  355. Xcomments to: jobs@nestmoi.rain.com
  356. XPlease include system type and configuration,
  357. X    (eg. Sun 360, Sun OS; HP700, HPunix; ...)
  358. X
  359. XSun is a trademark of Sun Microsystems.
  360. XHP is a trademark of Hewlitt Packered Computer Systems.
  361. XUnix is a trademark of AT&T Bell Labs.
  362. X4.3BSD is a trademark of the University of California, Berkeley, CA.
  363. XInternet is probably a trademark of the U.S. Government.
  364. X
  365. XIf I've forgotten anyone or made mistakes with the trademark
  366. Xinformation above, I apologize.
  367. XDisclaimers: All examples are just examples, no references are made to
  368. X    known companies intentionally to harm those companies. An effort
  369. X    has been made to remove company names from the examples but I
  370. X    ain't perfect. If you have a problem with any of the words drop
  371. X    me a note and I'll alter them or give credit appropriately.
  372. X    All tools used which are commented out are usage examples which are
  373. X    meant to highlight typical usage (namely my own) and are not
  374. X    meant as tools required to get the job done.
  375. X
  376. XOffer: If you would like to hire me, I may be available. Drop me an E-mail note
  377. X    and let's talk!
  378. END_OF_FILE
  379.   if test 13475 -ne `wc -c <'Readme'`; then
  380.     echo shar: \"'Readme'\" unpacked with wrong size!
  381.   fi
  382.   # end of 'Readme'
  383. fi
  384. if test -f 'install' -a "${1}" != "-c" ; then 
  385.   echo shar: Will not clobber existing file \"'install'\"
  386. else
  387.   echo shar: Extracting \"'install'\" \(1824 characters\)
  388.   sed "s/^X//" >'install' <<'END_OF_FILE'
  389. X#!/bin/sh
  390. XPATH=/bin:/usr/bin:/usr/ucb
  391. Xexport PATH
  392. X# CopyRight 1993 James Chorn All Rights Reserved.
  393. X# This work is wholely owned by James Chorn.
  394. X# Permission is given to use and copy the tools described and included
  395. X# herein with the following proviso:
  396. X# Proviso: You will not litigate against James Chorn for misuse, destruction
  397. X#    of property informational or otherwise, and you give James Chorn
  398. X#    credit for producing these tools by always including this copyright
  399. X#    notice prominently in all copies and distributions.
  400. X# No Warrantee is implied or Expressed and this software is provided 'as is'. 
  401. X# James Chorn will not be held accountable for any problem associated with the
  402. X# use of this software.
  403. X# 
  404. X# Usage: install [installdir]
  405. X#
  406. Xif [ $# = 0 ]; then
  407. X    jobs="/usr/local/jobs"
  408. X    setdir=no
  409. Xelse
  410. X    jobs="$1"
  411. X    setdir=yes
  412. Xfi
  413. X
  414. Xif [ ! -d "/${jobs}" ]; then
  415. X    echo "Can't create /${jobs}, make this directory and reinvoke."
  416. X    exit 1
  417. Xfi
  418. X
  419. Xif touch ${jobs}/listjobs; then
  420. X    echo "Installing files in ${jobs}"
  421. X    rm -f ${jobs}/listjobs
  422. Xelse
  423. X    echo "Can't access /${jobs}, set permission for $jobs and reinvoke."
  424. X    exit 1
  425. Xfi
  426. X
  427. Xfor i in joblists listjobs maintjobs Comments Help setup.default
  428. Xdo
  429. X    if [ -f ${jobs}/$i ]; then
  430. X        echo ${jobs}/$i exists, not installed;
  431. X        exit 1;
  432. X    fi
  433. X    cp -p ./$i ${jobs}/$i
  434. Xdone
  435. X
  436. Xtrap "rm -f /tmp/jobsins.$$ ; echo Caught Signal ; exit 1" \
  437. X    1 2 3 4 5 6 7 8 9 10 12 13 14 15
  438. X
  439. Xif [ $setdir = yes ]; then
  440. X    for i in joblists listjobs maintjobs
  441. X    do
  442. X        echo "Modifing ${jobs}/$i to install path $jobs"
  443. X        sed -e "s,/usr/local/jobs,$jobs," /${jobs}/$i >/tmp/jobins.$$
  444. X        cp /tmp/jobins.$$ ${jobs}/$i
  445. X        rm -f /tmp/jobins.$$
  446. X    done
  447. X    echo "Modifing ${jobs}/joblists to install user name ${USER=root}"
  448. X    sed -e "s,root,$USER," /${jobs}/joblists >/tmp/jobins.$$
  449. X    cp /tmp/jobins.$$ ${jobs}/joblists
  450. X    rm -f /tmp/jobins.$$
  451. Xfi
  452. Xexit 0
  453. END_OF_FILE
  454.   if test 1824 -ne `wc -c <'install'`; then
  455.     echo shar: \"'install'\" unpacked with wrong size!
  456.   fi
  457.   chmod +x 'install'
  458.   # end of 'install'
  459. fi
  460. if test -f 'joblists' -a "${1}" != "-c" ; then 
  461.   echo shar: Will not clobber existing file \"'joblists'\"
  462. else
  463.   echo shar: Extracting \"'joblists'\" \(2727 characters\)
  464.   sed "s/^X//" >'joblists' <<'END_OF_FILE'
  465. X#!/bin/sh
  466. XPATH=/bin:/usr/bin:/usr/ucb
  467. Xexport PATH
  468. X# CopyRight 1993 James Chorn All Rights Reserved.
  469. X# This work is wholely owned by James Chorn.
  470. X# Permission is given to use and copy the tools described and included
  471. X# herein with the following proviso:
  472. X# Proviso: You will not litigate against James Chorn for misuse, destruction
  473. X#    of property informational or otherwise, and you give James Chorn
  474. X#    credit for producing these tools by always including this copyright
  475. X#    notice prominently in all copies and distributions.
  476. X# No Warrantee is implied or Expressed and this software is provided 'as is'. 
  477. X# James Chorn will not be held accountable for any problem associated with the
  478. X# use of this software.
  479. X#
  480. X# csh Usage: joblists >>& /usr/local/jobs/messages
  481. X#
  482. X# Sample cron script which creates job listings (is actually in use)...
  483. X#
  484. X# Sample crontab entry
  485. X#
  486. X# 00 4 * * 1 jim /usr/local/jobs/joblists >>/usr/local/jobs/messages 2>&1
  487. X#
  488. X# Sample maintenance of old listings
  489. X#
  490. Xjobs="/usr/local/jobs"                # Install dir.
  491. Xif [ -s ${jobs}/Last -a -d ${jobs}/LastSaved ];    then
  492. X    LastDate=`cat ${jobs}/Last`        # Last is generated by listjobs
  493. X    if [ " $LastDate" != " " ]; then    # is paranoid? avoid compress *
  494. X        OldList=${jobs}/${LastDate}
  495. X        for oldfile in ${OldList}*
  496. X        do
  497. X            if [ -f $oldfile ]; then
  498. X                compress $oldfile
  499. X                if [ -f ${oldfile}.Z ]; then
  500. X                    mv -f ${oldfile}.Z \
  501. X                        ${jobs}/LastSaved
  502. X                fi
  503. X            fi
  504. X        done
  505. X    fi
  506. Xfi
  507. X#
  508. X# Create the Job listings / Do a Run...
  509. X# Note: Recommend you use the built-in defaults for a manual test run
  510. X#    and then always make modifications to a setup file(s).
  511. X#
  512. X# /usr/local/jobs/listjobs &    # Use all Defaults
  513. X${jobs}/listjobs ${jobs}/setup.default &
  514. X#${jobs}/listjobs ${jobs}/setup.example &
  515. X#${jobs}/listjobs ${jobs}/setup.newyork &
  516. Xwait
  517. X
  518. X# Sample autosend use, I have a job but my friends don't...
  519. X#
  520. X# Mail off the list to people offsite that will print and distribute.
  521. X#
  522. X# Note: It's wise to only send this to people that will distribute
  523. X#    the listing to those that don't have computer access. Remember
  524. X#    also that the listing produced could be quite large and you
  525. X#    may have email bandwidth consideration.
  526. XDate=`cat ${jobs}/Last`
  527. XList=${jobs}/${Date}    # Ext=.newyork  in setup.newyork -> ${List}.newyork
  528. X
  529. Xfor user in root
  530. Xdo
  531. X    cat ${List} | /usr/ucb/mail -s "Usenet Jobs $Date" $user
  532. X    ( echo -n "Mailed $Date to $user " ; /bin/date ) >> ${jobs}/Sent
  533. Xdone
  534. X
  535. X# Print out current default listing fancy on a postscript printer
  536. X# using the header line as the page title.
  537. X#
  538. X#Header=`head -3 $List | tail -1`
  539. X#enscript -r2 -b"$Header" $List
  540. X
  541. X# Print out last listing using lpr
  542. X# using the header line as the page title.
  543. X#
  544. X#Header=`head -3 $List | tail -1`
  545. X#lpr -J "Job Listings" -T "$Header" ${List}.htrg
  546. END_OF_FILE
  547.   if test 2727 -ne `wc -c <'joblists'`; then
  548.     echo shar: \"'joblists'\" unpacked with wrong size!
  549.   fi
  550.   chmod +x 'joblists'
  551.   # end of 'joblists'
  552. fi
  553. echo shar: End of archive 2 \(of 2\).
  554. cp /dev/null ark2isdone
  555. MISSING=""
  556. for I in 1 2 ; do
  557.     if test ! -f ark${I}isdone ; then
  558.     MISSING="${MISSING} ${I}"
  559.     fi
  560. done
  561. if test "${MISSING}" = "" ; then
  562.     echo You have unpacked both archives.
  563.     rm -f ark[1-9]isdone
  564. else
  565.     echo You still must unpack the following archives:
  566.     echo "        " ${MISSING}
  567. fi
  568. exit 0
  569. exit 0 # Just in case...
  570.