🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #3132

Re: SUMMARY: Running 'rn' from crontab on SunOS 4.1

#3132
From: Adri Verhoef
Date: Tue, 19 Jan 1993 10:22
42 lines
2113 bytes
rob@wzv.win.tue.nl (Rob J. Nauta) writes:
>a3@rivm.nl (Adri Verhoef) writes:
>
>>A while ago I asked how to run 'rn' from crontab to save articles.
>>I moved from a System V machine to a SunOS 4.1 machine.
>>When I ran 'rn -T -q' (from a script called 'auto-rn') in the background:
>
>>	rn -T -q -M "^$ng$" << eof
>>yqq
>>eof
>
>>I got:   [1] + Stopped (tty output)   auto-rn ngname
>
>You GOT to be kidding... If you want to automatically save articles,
>use 'readnews'. It comes with Bnews. it's old, slow, primitive, but
>for this it works.

You have a point there.

>>It seemed that 'rn' needs a controlling tty.  Which is unavailable from
>>crontab, nor is it in the background.
>
>Use 'pty', available anywhere, or 'expect'.

You have another point there. :-)

>>Anyway, thanks to Siebren van der Zee (siebren@xirion.nl), who helped me
>>with this problem, it works now.
>
>>The solution is to use trace(1) as follows:
>
>>	trace rn -T -q -M "^$ng$" 2>/dev/null << eof
>>yqq
>>eof
>
>>I know it's not very elegant, but it works. :-)
>
>Argh......... Single-step a program just to avoid the controlling
>tty ? Why don't you post to alt.hackers ??

Apart from that, it still doesn't work from crontab... :-(
Where was I with my brain when we tested it? :-(
Technical Details
Message-ID: <C13JHz.9Hz@rivm.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-nlnet.misc.mbox.zip!sparky!uunet!zaphod.mps.ohio-state.edu!rpi!think.com!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!mcsun!sun4nl!rivm!a3
References: <C0wsMB.I1@a312441.uucp> <4363@wzv.win.tue.nl>

Show Full Headers
Complete Article Headers
Message-ID: <C13JHz.9Hz@rivm.nl>
Subject: Re: SUMMARY: Running 'rn' from crontab on SunOS 4.1
Date: Tue, 19 Jan 1993 10:22:46 +0000
From: a3@rivm.nl (Adri Verhoef)
References: <C0wsMB.I1@a312441.uucp> <4363@wzv.win.tue.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-nlnet.misc.mbox.zip!sparky!uunet!zaphod.mps.ohio-state.edu!rpi!think.com!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!mcsun!sun4nl!rivm!a3
Newsgroups: nlnet.misc,news.software.readers
Summary: It still doesn't work from crontab; read on
Keywords: SIGSEGV
Sender: news@rivm.nl
Organization: Rijksinstituut voor Volksgezondheid en Milieuhygiene,Bilthoven,NL
Lines: 42