Thread View: news.software.readers
3 messages
3 total messages
Started by Adri Verhoef
Fri, 15 Jan 1993 18:56
SUMMARY: Running 'rn' from crontab on SunOS 4.1
Author: Adri Verhoef
Date: Fri, 15 Jan 1993 18:56
Date: Fri, 15 Jan 1993 18:56
23 lines
1386 bytes
1386 bytes
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 It seemed that 'rn' needs a controlling tty. Which is unavailable from crontab, nor is it in the background. 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. :-)
Re: SUMMARY: Running 'rn' from crontab on SunOS 4.1
Author: r... Rob J. Nauta
Date: Mon, 18 Jan 1993 21:19
Date: Mon, 18 Jan 1993 21:19
42 lines
2150 bytes
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'
Re: SUMMARY: Running 'rn' from crontab on SunOS 4.1
Author: Adri Verhoef
Date: Tue, 19 Jan 1993 10:22
Date: Tue, 19 Jan 1993 10:22
42 lines
2113 bytes
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? :-(
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads