🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
5 messages
5 total messages Started by Richard C. Dempsey Mon, 19 Mar 1990 18:40
nnadmin from cron
#205
Author: Richard C. Dempsey
Date: Mon, 19 Mar 1990 18:40
28 lines
1786 bytes
I am having trouble invoking nnadmin from cron to do the nightly espire on the
database.  Every morning, I see in my mailbox a letter from root with the output
from the cron job.  Unfortunately, nnadmin is supposed to run quietly!

I have the following line in root's crontab:

20 2 * * * su - news /usr/local/bin/nnadmin EW

which is supposed to run nnadmin every night at 0220.  The mail from root tells
me that I am getting the following output:

/usr/local/bin/nnadmin: (M-^A)^C^A^K^B(M-@)(M-^@)^S@#(M-D): not found
/usr/local/bin/nnadmin: ^W(M-9)(M-T)( ... other gibberish ... )K(M-^R)^P: not found
(three more such lines...)

It looks like su is trying to execute a binary as a shell script.  Issuing the
su command manually works fine; at least there's no output!

I am running nn 6.3.10 on a Sun 4/260 under SunOS 4.0.3.  I am using mini-inews
from nntp 1.5.7 to talk to a Sun server that runs nntp 1.5.0.  I don't know what
version or kind (B or C) news software he is running (I don't think it matters
for this problem).

Thanks for your help,
Rich Dempsey				dempsey@Kodak.COM
Eastman Kodak Company			716-477-3457
Rochester, NY 14650-2205
USA
Re: nnadmin from cron
#208
Author: Steve A Rooke
Date: Tue, 20 Mar 1990 07:49
21 lines
1355 bytes
lrul00@dixel.Kodak.COM (Richard C. Dempsey) writes:

>I am having trouble invoking nnadmin from cron to do the nightly espire on the
>database.  Every morning, I see in my mailbox a letter from root with the output
>from the cron job.  Unfortunately, nnadmin is supposed to run quietly!

>I have the following line in root's crontab:

>20 2 * * * su - news /usr/local/bin/nnadmin EW

Have you tried:

20 2 * * * su news -c "/usr/local/bin/nnadmin EW"

Regards

Steve
Steve Rooke  steve@gapos.bt.co.uk  (...mcvax!ukc!gapos!steve)  UK + 394 693595
BT, ITS/CS, Area 106, Anzani House,   | "You roll the dice with your heart
Trinity Ave, FELIXSTOWE, Suffolk, UK  |   and soul,  But some times you
#include <std/disclaimer>             |    just don't know." - Sam Brown
Re: nnadmin from cron
#211
Author: Richard C. Dempsey
Date: Thu, 22 Mar 1990 16:12
32 lines
1767 bytes
I wrote:

>I am having trouble invoking nnadmin from cron to do the nightly espire on the
>database.  Every morning, I see in my mailbox a letter from root with the output
>from the cron job.  Unfortunately, nnadmin is supposed to run quietly!

>I have the following line in root's crontab:

>20 2 * * * su - news /usr/local/bin/nnadmin EW

steve@gapos.bt.co.uk (Steve A Rooke) writes:
>Have you tried:

>20 2 * * * su news -c "/usr/local/bin/nnadmin EW"

No, I hadn't.  I tried it last night, and it works.  I still get mail
from daemon though.  Now it tells me that 'Your "cron" job produced the
following output:'

sent signal 14 to master

Which is much improved from the previous situation. I don't understand
why the small change to the cron line works; I may ask comp.unix.wizards
someday.  BTW, nnadmin was compiled on a Sun-4 for a Sun-4 (of a Sun-4?
Naah, we'll leave Lincoln out of this).  There was (and still is) no
Sun-3 binary in sight.

My thanks to all who replied.

Rich Dempsey
dempsey@Kodak.COM
Re: nnadmin from cron
#223
Author: Steve Rooke
Date: Sun, 25 Mar 1990 09:37
24 lines
1460 bytes
lrul00@dixel.Kodak.COM (Richard C. Dempsey) writes:

>>Have you tried:

>>20 2 * * * su news -c "/usr/local/bin/nnadmin EW"

>No, I hadn't.  I tried it last night, and it works.  I still get mail
>from daemon though.  Now it tells me that 'Your "cron" job produced the
>following output:'

>sent signal 14 to master

I guess I could/should have said:

20 2 * * * su news -c "/usr/local/bin/nnadmin EW" >/dev/null 2>&1

No News is good news, but it probably means your feed has gone down :-)

Steve
-- 
Steve Rooke,  steve@gapos.bt.co.uk (...mcvax!ukc!gapos!steve), UK + 394 693595
BT, CSD/AS, Room 106, Anzani House,   | "You roll the dice with your heart
Trinity Ave, FELIXSTOWE, Suffolk, UK. |  and soul, But some times you just
#include <std/disclaimer>             |  don't know"  -  Sam Brown 
Re: nnadmin from cron
#257
Author: Kim F. Storm
Date: Tue, 03 Apr 1990 22:40
25 lines
1362 bytes
steve@gapos.bt.co.uk (Steve Rooke) writes:

>I guess I could/should have said:

>20 2 * * * su news -c "/usr/local/bin/nnadmin EW" >/dev/null 2>&1

Or you could have said:

20 2 * * * su news -c "/usr/local/bin/nnadmin =EW"

The '=' 'command' silences the nnadmin command.  Notice that in
release 6.4, you will have to put a confirmation on the 'E' command,
i.e. use
	nnadmin =EYW
to start expire.

>No News is good news, but it probably means your feed has gone down :-)

Like mine has been for the past week (thus the silence).


-- 
Kim F. Storm        storm@texas.dk        Tel +45 429 174 00
Texas Instruments, Marielundvej 46E, DK-2730 Herlev, Denmark
	  No news is good news, but nn is better!
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