🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: apple.aux
Article #1

can't get /usr/lib/uucp/uudemon.hr to run correctly from cron (long)

#1
From: John R. Galloway Jr.
Date: Fri, 08 Jun 1990 08:57
78 lines
3949 bytes
	In the continuing war of me against netland, (I love A/UX 2.0, but
would love to do something cruel & disgusting to uucp/sendmail/etc) I am
currently in a battle with cron (maybe).  I can receive and send mail just fine
(the from address is still my uucp address instead of my internet address, but
I've given up on that battle for the moment).  It gets sent out to my sponsoring
site (fernwood) via uuxp and all is well, as long as I (as root) execute uucico
(or /usr/lib/uucp/uudemon.hr) by hand from a command shell.  If I set cron
up to do so automatically, files are pulled in, but something goes wrong when
the X.* files are processed as shown below.  I have tried making
/usr/lib/uucp/uuxqt a shell script which saves the files and then executes
the real uuxqt, but that does not work (and perhaps would not help anyway).
Adding a -x9 to the uucico line in uudemon.hr shows no problems (which makes
sense since the uucp part seems to work, and rmail doesn't have any debug/diag
switches, that I know of)  I also have alteered uudemon.hr so the shell vars/env
is identical to that i get when logged in as root, still no help.  Does anyone
know what this is?

CONTENTS OF /usr/spool/uucp/LOGFILE on errant mail processing:
fernwood!uucp (6/7-22:07:06) (C,4302,0) OK (DIRECT tty90 0)
fernwood!uucp (6/7-22:07:38) (C,4302,0) SUCCEEDED (call to fernwood )
fernwood!uucp (6/7-22:07:46) (C,4302,0) OK (startup)
fernwood!uucp (6/7-22:07:48) (C,4302,0) REQUESTED (S D.fernw2a88185 D.fernw2a881
85 root)
fernwood!uucp (6/7-22:07:52) (C,4302,1) REQUESTED (S D.gallo225f4ab X.gallowaN22
5f root)
fernwood!uucp (6/7-22:07:56) (C,4302,2) OK (conversation complete  tty90 50)
fernwood!uucp (6/7-22:07:57) (Q,4305,0) root XQT (rmail jrg@galloway.sj.ca.us )
fernwood!uucp (6/7-22:07:58) (Q,4305,0) ret (1000) from fernwood!root (MAIL FAIL
)
fernwood!daemon (6/7-22:08:01) (X,4313,0) XQT QUE'D (rmail root@fernwood.UUCP )

CONTENTS of the D.* file enqueued as the last item above is:
From root  Thu Jun  7 22:07:59 1990 remote from galloway
Received: by galloway.sj.ca.us (5.61/SMI-3.2)
        id AA04310; Thu, 7 Jun 90 22:07:59 PDT,
Date: Thu, 7 Jun 90 22:07:59 PDT
From: galloway!root
Message-Id: <9006080507.AA04310@galloway.sj.ca.us>
To: fernwood!root

Mail failed (PATH=/bin:/usr/bin LOGNAME=uucp TZ=`/bin/cat rmail jrg@galloway.sj.
ca.us ).  Letter returned to sender.

The particular mail that cuased this problem was sent form apple.com to
jrg@galloway.sj.ca.us and is processed fine if /usr/lib/uucp/uudemon.hr is
executed on the command line in a command shell instead of from cron.  

CONTENTS of crontab file:
7 4,10,16,22 * * 1,2,3,4,5,6 /usr/lib/uucp/uudemon.hr
30 3 * * 1,2,3,4,5,6 /usr/lib/uucp/uudemon.day
0 9 * * 0 /usr/lib/uucp/uudemon.wk

CONTENTS of /usr/lib/uucp/uudemon.hr:
#!/bin/sh
:
: uudemon.hr
:
#       @(#)uudemon.hr  UniPlus V.2.1.2 (UniSoft 1.2)
# 'perform every 6 hours on the 7-minute mark'
# Copyright 1988 Apple Computer, Inc.
LOGNAME=uucp
export LOGNAME
PATH=/bin:/usr/bin:/usr/ucb:/mac/bin:/etc:/usr/etc:/usr/lib/uucp:.
export PATH
cd /usr/spool/uucp
/usr/lib/uucp/uucico -r1 -sfernwood

thanks for any and all help.
	-jrg

-- 
internet     jrg@apple.com      John R. Galloway, Jr.
(soon to be) jrg@galloway.sj.ca.us
applelink    d3413              CEO..receptionist         795 Beaver Creek Way
human       (408) 259-2490      Galloway Research         San Jose, CA  95133

These are my views, NOT Apple's, I am a GUEST here, not an employee!!
Technical Details
Message-ID: <41741@apple.Apple.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!apple!jrg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!apple!jrg
From: jrg@Apple.COM (John R. Galloway Jr.)
Newsgroups: apple.aux,comp.unix.aux
Subject: can't get /usr/lib/uucp/uudemon.hr to run correctly from cron (long)
Keywords: uudemon.hr cron
Message-ID: <41741@apple.Apple.COM>
Date: 8 Jun 90 08:57:33 GMT
Organization: Galloway Research
Lines: 78