[comp.sys.att] Help with postnews on a 3b2

root@amyerg.UUCP (Admin) (08/28/88)

Have news installed on my 3B2/300 at home, and have no problems with receiving
news. But when I try to follow-up to an artice from my console, I get:
uux failed (-1)
twice.

I looked at the processes when I kick off a followup, and saw that one of them
was:
sh -c uux - -r -n swbatl!rnews < filename

When I try that command I get:
stty: not a typewriter
stty: not a typewriter

and then a listing of the proper options for sh.

Any ideas on how to fix this?

-- 
Ewan Grantham (601) 354-6454 ext. 452  Miss. Dept. of Corrections
{}!swbatl!amyerg!egranthm             (The Prison People)
My bosses aren't responsible for me, and vice versa
Go Broncos!!! 

mouse@mcgill-vision.UUCP (der Mouse) (09/07/88)

In article <331@amyerg.UUCP>, root@amyerg.UUCP (Admin) writes:
> Have news installed on my 3B2/300 at home, and have no problems with
> receiving news.  But when I try to follow-up to an artice from my
> console, I get "uux failed (-1)" twice.

> I looked at the processes when I kick off a followup, and saw that
> one of them was:

> sh -c uux - -r -n swbatl!rnews < filename

> When I try that command I get:
> stty: not a typewriter
> stty: not a typewriter

> and then a listing of the proper options for sh.

I don't know what's wrong with postnews (or uux), but I can perhaps
de-mystify the failure when you try to run that command by hand.
Whatever tool you're using to look at the processes (ps?) is printing
spaces in arguments the same way it prints a space between arguments.
That is, you can't tell the difference between running

sh
-c
uux - -r -n swbatl!rnews < filename

(each line being a separate argument) and

sh
-c
uux
-
-r
-n
swbatl!rnews
<
filename

or something in between.  When you type it yourself, you get something
closer to the second one (not quite though, because *your* shell
interprets the < rather than passing it to the sh you're running).  Try
it this way:

sh -c 'uux - -r -n swbatl!rnews < filename'

That might help.  For debugging the uux problem, you might try some
debugging option to uux.  On Berkloid uux, this is -x<number>; I don't
know what USG uux uses.

You probably don't need to bother with the sh -c nonsense; you can
probably just run

uux - -r -n swbatl!rnews < filename

(if you use csh (I dunno, do you even have it?), remember to backslash
the ! or csh will misinterpret it).

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu

dws@cseg.uucp (David W. Summers) (09/07/88)

In article <331@amyerg.UUCP>, root@amyerg.UUCP (Admin) writes:
> Have news installed on my 3B2/300 at home, and have no problems with receiving
> news. But when I try to follow-up to an artice from my console, I get:
> uux failed (-1)
> twice.
> [...]
> When I try that command I get:
> stty: not a typewriter
> stty: not a typewriter
> [..]
> Any ideas on how to fix this?

I had this problem while trying to set up a new uucp connection yesterday.
What I found out was that the permissions and owner of the /usr/spool/uucp
directory and some of its subdirectories were not owned by uucp and/or were
not set to the correct permissions.  Also (if you are using HDB UUCP) check
to make sure that the /usr/spool/locks directory is writeable by uucp.

                         Hope this helps!

                         - David Summers
                         (dws@cseg.uucp)
                         (..!romed!cseg!dws)