🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #3129

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

#3129
From: r... Rob J. Nauta
Date: Mon, 18 Jan 1993 21:19
42 lines
2150 bytes
a...@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.

>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'.

>Anyway, thanks to Siebren van der Zee (sie...@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 ??

Rob
-- 
/-----------------------------------------------\       Never              ,==.
| Rob J. Nauta, UNIX computer security expert.  |        Apologize,       /@  |
| r...@wzv.win.tue.nl, Phone: +31-40-837549      |         Never          /_  <
| Feel free to email me for free advice         |          Explain.     =" `g'
Technical Details
Message-ID: <4363@wzv.win.tue.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!tuegate.tue.nl!eba!svin09!wzv!rob
References: <C0wsMB.I1@a312441.uucp>

Show Full Headers
Complete Article Headers
Message-ID: <4363@wzv.win.tue.nl>
Subject: Re: SUMMARY: Running 'rn' from crontab on SunOS 4.1
Date: Mon, 18 Jan 1993 21:19:44 +0000
From: r...@wzv.win.tue.nl (Rob J. Nauta)
References: <C0wsMB.I1@a312441.uucp>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!tuegate.tue.nl!eba!svin09!wzv!rob
Newsgroups: nlnet.misc,news.software.readers,alt.hackers
Sender: ne...@eb.ele.tue.nl (The News system)
Followup-To: nlnet.misc,news.software.readers
Organization: None
Lines: 41
Approved: r...@wzv.win.tue.nl