HDTenEightyP/NetNews huggingface dataset:
From: alhy@unixhub.slac.stanford.edu (J. Scott Berg)
Newsgroups: comp.unix.aix
Subject: Re: xterm: no available ptys
Date: 15 Aug 92 00:10:07 GMT
Reply-To: alhy@unixhub.slac.stanford.edu
Organization: Stanford University, dept of Physics / SLAC

In article <1992Aug14.223914.401@iscnvx.lmsc.lockheed.com>, rahner@iscnvx.lmsc.lockheed.com (Mark Rahner) writes:
|> bis@ifi.uio.no (Bjorn Ivar Stark) writes:
|> : When I try to start more than a certain limit of xterms I get
|> : this error-message:
|> :     fosli@asterix: xterm
|> :     xterm: no available ptys
|> 
|> This has given us massive headaches.  Our system administrator has
|> increased one of our RS/6000s to what he says is the limit of 64.
|> Sorry, but I don't know how.
|> 
|> When we first reported this to IBM, IBM said "Xterm is provided on the
|> RISC/6000 as a binary sample only and is unsupported."  (More on this in
|> a minute.)  After explaining to the #!%&*s that the problem wasn't with
|> xterm, but with their system chewing up ptys, they reexamined the problem
|> and determined that the software that controls our many X Stations was
|> not properly releasing the ptys when the X Stations were being turned
|> off.  As yet, this has not been fixed.
|> 

If your problem is what I think it is, the following fix MAY (no
guarantees) work:  before exiting mwm (I'm assuming that's what you're
running), execute the following perl script:

#!/usr/local/bin/perl
#
# Exit gracefully from an x windows session on an RS6000--i.e., don't leave
# behind any csh's.  At the same time, don't kill anything unnecessarily.
#
$indx = 0;
# Get a list of processes
open(psout,"ps lgxw |");
while (<psout>) {
  $psout[$indx++] = $_;
}
close(psout);
$cmd =  "kill -9";
for ($i = 0 ; $i < $indx ; $i++) {
  @psline = split(/ +/,$psout[$i]);
  if (("$psline[3]" eq "$<") && ("$psline[5]" ne "$$") && 
      ("$psline[11]" eq "EVENT") && !($psline[12] =~ /hft\/[0-9]/) &&
      (($psline[14] =~ /^-?[bck]?sh/) || ($psline[14] =~ /^-?tcsh/))) {
    for ($j = 0 ; $j < $indx ; $j++) {
      @xtst = split(/ +/,$psout[$j]);
      last if (("$psline[5]" eq "$xtst[4]") && ($xtst[13] =~ /^xterm/));
    }
    if ($j != $indx) {
      $cmd = "$cmd $psline[4]";
    }
  }
}
exec $cmd;


Here's what it does:  it does a ps lgxw to find all the shells that
are children of xterms and have this "EVENT" state set, and kills
them.  These seem to be the things that are hanging around that are
eating pty's.  As best as I can figure, the problem is in mwm, not the
server.  That's a guess (running R3 or R5 server with twm doesn't seem
to exhibit the problem at the moment).

I hope this is what you are looking for.  Good luck, and God bless

				-Scott Berg

-- 
-------------------------------------------------------------------------------
The opinions expressed here are, of course, my own and nobody else's.
-------------------------------------------------------------------------------
J. Scott Berg
email: alhy@unixhub.slac.stanford.edu
real mail: Varian Physics
           Stanford  CA  94305-4060
phone:	(415) 926-4732 (w)
 	(415) 328-8246 (h)
-------------------------------------------------------------------------------
From: HWILSON@UA1VM.bitnet
Newsgroups: comp.unix.aix
Subject: Re: Comp.Unix.Aix Digest, Volume 4, Number 51
Date: 20 Aug 92 16:23:11 GMT

Please remove my name from your mailing list. Thanks very much.
Howard Wilson
From: chan@hpfcmgw.FC.HP.COM (Chan Benson)
Date: Tue, 18 Aug 1992 21:47:19 GMT
Subject: Re: Re: Debuging Segmentation Violation Fault
Organization: HP Fort Collins, CO
Newsgroups: comp.unix.aix

> |>      I have this HUGE C program (20,000 lines). Everything worked fine
> |> until the other day I added a few (about 10) lines to it. Then all of a sudden,
> |> it keeps giving me this "segmentation violation". I ran "dbx" to see if I can
> |> get some clue, it gave me something like:
> |>
> |> segmentation violation in malloc_y at 0xd00d43f0
> |> 0xd00d43f0 (malloc_y+0x2a8) 7c7c45aa       stsi   r3,r28,0x8
> |>
> |>      From these two lines, all I can guess is that the fault is related to
> |> "malloc". But "malloc" is used more than dozens of times throughout the
> |> program, how am I supposed to know "who steps on whose toe and where".
> |>
> |>      I am desperate. Could someone tell me what other things I should do
> |> beyond these two lines? Or maybe what books or manuals should I read to get
> |> more information? What do those address-like (?) numbers all mean?
> ...
> 
>   Usually malloc fails when it can't honor your request for storage.
> i.e. you've requested a huge amount of memory (or even worse, a
> negative amount--which I believe translates into a huge amount as
> well!).

Nice try, but if malloc is giving a segmentation violation that usually
means that the program wrote beyond the boundary of a previously malloc'ed
area (thus trashing malloc's allocation info). These bugs are difficult
to find without a debug version of the malloc library.

			-- Chan Benson
			HP Fort Collins
Xref: sparky comp.unix.aix:8983 comp.sys.super:913
Newsgroups: comp.unix.aix,comp.sys.super
Subject: Help with build of AT&T C++ 3.01
From: gwestlu@zeus.calpoly.edu (George L. Westlund)
Date: Fri, 21 Aug 1992 16:36:34 GMT
Followup-To: gwestlu@calpoly.edu
Organization: California Polytechnic State University, San Luis Obispo

Greetings!

Here at Cal Poly we have an IBM 3090/400E running AIX/370 among a slew
of other Operating Systems with an attached cluster of PS/2s.  We are
currently in the process of receiving 5 IBM RISC/6000 560s and one 970
to become a replacement for the PS/2 cluster (thank God for grants). 
We are in the process of porting and upgrading current software to
make the move to the 6000s and AIX/ESA which is also coming soon.

As part of this operation, we have obtained a license for AT&T C++
3.01 for the 3090.  We also have AT&T C++ version 2.1 on the 3090 that
was built with version 1.2 (not 1.2.1) and would prefer not to use it
to build 3.01 because of the 1.2libs.

Has anyone built C++ 3.01 for the 370 systems under AIX 1.2.1?  Has
anyone done it yet for the 6000s?  I would prefer to build it on which
ever is the easier (and if someone already has it built, maybe we can
share).  If I need to move it to the 6000s, we would have to transfer
the license from the 3090.

The other kicker in this is that someone on campus may be able to
afford the IBM HESC group H (RISC/6000 advanced) which includes C++
and that would save me a lot of trouble, although it would mean
building it on the 3090 with the AT&T version.

Any help or suggestions would be greatly appreciated!

-- 
George L. Westlund		|| Internet: gwestlu@calpoly.edu
Academic Computing Services	|| BITNET:   DI001@CALPOLY.BITNET
Cal Poly			|| NoiseNET: (805)756-6543
San Luis Obispo, CA  93407	||
Newsgroups: comp.unix.aix
From: nlane@well.sf.ca.us (Nathan D. Lane)
Subject: Re: aixwm vs mwm/twm, aixterm vs xterm
Summary: mwm aixterm 
Keywords: aixwm, aixterm, comparisons
Organization: Whole Earth 'Lectronic Link
Date: Sat, 15 Aug 1992 04:46:45 GMT

I generally use mwm and aixterm rather than any of the other applications.
Primary reason: support and industry standards.  The user's in my shop
are not in any way sophisticated and can't even handle the knwledge of
what a directory is.

The other reason I use aixterm - I log in to 386/486 Unix a lot to run our
book keeping system as well as an old NCR tower and have compiled the
aixterm entry on both those machines and everything comes out in 
marvelous color!  Sure looks nice and works well.  It also works well
with comm programs w/ANSI emulation for color.

-Nathan Lane
Trico Title Company, Santa Barbara, CA
From: mbeckman@mbeckman.mbeckman.com (Mel Beckman)
Newsgroups: comp.unix.aix
Subject: Andrew Tool Kit Unbelievable!
Date: Sun, 16 Aug 92 23:25:00 PST
Organization: Beckman Software Engineering
Reply-To: mbeckman@mbeckman.com
X-Mailer: uAccess LITE - Macintosh Release: 1.5v5

This weekend I installed the Andrew Took Kit (available on CD for $50 from CMU)
and it is absolutely incredible. The quality of this effort is beyond commercial
grade.  It's exquisite.  You get a wonderful window editer, ez, a directory
browser, bush, a mail reader, message, and about a trillion other things.
Propeller head heaven!

It's not just for propskulls, either -- ATK is in use on the Carnegie Mellon
campus by many nontechnical folks. 

I'll try to say more later. For now I wanted to get out this big Thank You.
A superb job beyond anything I've yet seen from a consortium.

-- 

 From the Andrew documentation:
 "You may contact the Consortium for more information on Andrew or the
Consortium itself a number of ways.  Phone:  phone: +1-412-268-6710;
FAX:  fax: +1-412-621-8081 or email to
info-andrew-request@andrew.cmu.edu."

_____________________________________________________________________
| Mel beckman                  |    Internet: mbeckman@mbeckman.com |
| Beckman Software Engineering |  Compuserve: 75226,2257            |
| 1201 Nilgai Place            |       Voice: 805/647-1641          |
| Ventura, CA 93003            |         Fax: 805/647-3125          |
|______________________________|____________________________________|
 "Internet is big.  Really Big.  It gives the idea of
  infinity much better than infinity itself." 
   (with apologies to Douglas Adams)
Newsgroups: comp.unix.aix
From: shair@barolo.cso.uiuc.edu (Bob Shair)
Subject: Re: Vi is still broken.
Reply-To: rmshair@chgvmic1.vnet.ibm.com
Organization: IBM Champaign
Date: Wed, 19 Aug 1992 15:27:13 GMT

terry@phoenix.ocf.llnl.gov (Terry Heidelberg x24154) writes:
>
>We don't see hangs; what we see is an occasional interactive program
>looping to beat the band.     Since upgrading to 3.2.1 (later to 3.2.2)
>we have seen the following programs looping:
>    vi aixterm less info_ascii 
>and maybe a few more I forget.   The typical scenario is the user 
>telnet's in, works away, and for some reason has the session broken
>(who knows, maybe after something hangs) after which s/he logs in
>again, or goes to some other work, unaware that one of his/her processes
>is running amok.    Since we have 18 550 cycle servers to
>look after, some of these runaways chew up quite a bit of cpu time
>before they get killed by a system administrator.      I have vague
>suspicions of (a) the telnetd, (b) something in the way these programs
>handle signals or system-call errors, (c) [the ever popular] AIX.
>
>Anyone have similar experiences, or ideas about the cause?  Are the
>above fixes likely to help us?
>
If you're running csh, this sounds like the problem we're working on
under APAR number IX29597.  Last time I looked it wasn't fixed yet.

If you're running ksh or sh... ?
>Thanks.
--

Bob Shair                          shair@chgvmic1.vnet.ibm.com
Scientific Computing Specialist    SHAIR@UIUCVMD (bitnet)
IBM Champaign
From: david@wal6000b.udc.upenn.edu (R. David Murray)
Newsgroups: comp.unix.aix
Subject: Need help with AIX2.3 and building contrib clients, specifically xrn
Keywords: aXe editors AIX 3.2
Date: 18 Aug 92 18:59:56 GMT
Reply-To: david@penndrls.upenn.edu
Distribution: usa
Organization: University Data Center, University of Pennsylvania

In article <Bt57rz.9LC@csn.org>, gary@teal.csn.org (Gary Studwell) writes:
> aXe 3.0 is now working here. Thanks to those who offered advice.
.....
> 2) Append Axe.ad to my .Xdefaults file and restart mwm.
.....

This is probably a FAQ, but I haven't seen it or a 3.2 FAQ list yet, so...

Could some kind soul explain to me how what IBM ships relates to what MIT
provides, and how to compile network available X applications under the
IBM 3.2 scheme?  I found a README file in the /usr/lpp/X11 subdirectory
that enabled me to generate 'the rest of' X11R4 (though libXaw.a seems to
have gotten trashed when I did a 'make clean' at the end (which the README
did /not/ tell me to do, I will admit)).  I also have a script I got off
the net some time ago that seems to be a replacement for the missing
xmkmf.  Using this, I got xrn to compile, but only after I edited the
generated Makefile to set TOP=/usr/lpp/X11 so it knew that the various
libxxx.a's actually existed.  But when I run xrn, it doesn't seem to find
it's app-defaults file, even though make install put it in the right place.
The quoted statement above is how I'm working around this for now, but
it is definately not what I /want/ to do.  Can anyone help me out?  Thanks.
Newsgroups: comp.unix.aix
From: derek@watson.ibm.com (Derek Lieber)
Subject: Re: AIX 3.2.2 upgrade and ptrace (correction)
Date: Thu, 13 Aug 1992 11:38:39 GMT
Reply-To: derek@watson.ibm.com (Derek Lieber)
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: IBM T.J. Watson Research Center

In article <1992Aug12.135919.5692@watson.ibm.com> derek@watson.ibm.com (Derek Lieber) writes:
>In article <1992Aug11.160451.9437@veeble.han.sub.org> jum@veeble.han.sub.org (Jens-Uwe Mager) writes:
>>
>>I have a program that stopped working when upgrading to AIX 3.2.2. This
>...
>>Does anybody now if the ptrace system call has changed considerably in 3.2.2
>>or if there are still other fixes available to get it working as before?
>
>A recent posting here suggested that ptrace problems were introduced
>by update U402846. Another update, U405614, supposedly fixes it.

I've received further information that update U405614 was superceded by U406391,
so the latter is the one you really want. Both of these are covered by apar IX27609.

-- 
Derek Lieber
derek@watson.ibm.com
From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
Newsgroups: comp.unix.aix
Subject: Re: Sendmail on 3.2.2
Keywords: sendmail.cf
Date: 20 Aug 92 03:44:44 GMT
Article-I.D.: mintaka.1992Aug20.034444.16819
Organization: /etc/organization


(This is not AIX-specific.  It should be in a more general group like
comp.unix.questions, or something directly related to sendmail.)

In article <brooks.714279839@sol.acs.unt.edu> brooks@sol.acs.unt.edu
(Brooks Thomas Lowell) writes:
>
>I would like to configure the sendmail.cf file so that it would omit
>the hostname when sending mail.

Assuming you have your domain defined somewhere:

  DDgnu.ai.mit.edu

you can do this easily with a rewrite rule like:

  R$*@<$-.$D>	$1@<$D>

Without looking at your sendmail.cf, however, it is impossible to say
where to put this.  This is something I would normally expect to be
paid to do.

-- 
 \   Charles Hannum, mycroft@ai.mit.edu
 /\  White heterosexual atheist male (WHAM) pride!
Newsgroups: comp.unix.aix,comp.protocols.tcp-ip,comp.protocols.ppp
From: grumpy@jpradley.jpr.com (Jeff Markel)
Subject: Re: Wanted: X.25-Ethernet or X.25-Token Ring gateway OR SLIP driver
Reply-To: grumpy@jpradley.UUCP (Jeff Markel)
Organization: Unix in NYC
Distribution: usa
Date: Wed, 19 Aug 1992 11:39:32 GMT

In article <1992Aug13.152913.7258@mixcom.com> mgic@mixcom.mixcom.com (mgic) writes:
>
>I am looking for one of the following:
>
>	SLIP driver for RS/6000 AIX (other than IBM's)
>
>	X.25-Ethernet gateway that supports SLIP
>
>	X.25-Token Ring gateway that supports SLIP
>
>
>I want a product that actually works without crashing
>the computer and is available today. Who's selling?
>
>Dean Roth
>(414) 347-4805
>-- 
>
>MGIC Investment Corp.
>270 E. Kilbourn
>Milwaukee, WI 53202

Yeah, it would be nice to have a SLIP that didn't crash the system...

I believe Morningstar has a PPP for RS6000's that also supports SLIP.


                        Jeff Markel

Jeffrey Markel | uucp:     jpradley!argos!markel   | Argos Computer Systems Inc
KD2HN          | internet: grumpy@jpradley.jpr.com | 110 W. 32nd Street 
(212)594-5400  | amprnet:  kd2hn@kd2hn.ampr.org    | New York, NY 10001
===============================================================================
	The New World Order is ... "Shoot to kill!"
===============================================================================
Newsgroups: comp.unix.aix
From: johnson@horta.rice.edu (Bruce Johnson)
Subject: Need help setting up Apple LocalTalk printer on RS6000
Organization: Rice University
Date: Thu, 20 Aug 1992 21:33:59 GMT

I have been trying to add an LocalTalk-based Silentwriter
(postscript printer) to our RS6000 530 (AIX 3.2).  The
LocalTalk network is bridged to the ethernet by a Shiva
FastPath, and I have installed the latest patch level of
CAP 6.0 successfully on the IBM.  But I am still doing
something wrong and can't figure out what.

Communications are definitely established.  I can use
CAP's tlw, for example, to send a showpage to the printer.
However, I cannot figure out the correct AIX way to add
the printer/device combination.  So far I have the following
in my /etc/qconfig file:

	silent:
	        device = dsilent
	        up = TRUE
	        acctfile = /var/spool/lpd/silent
	dsilent:
	        access = write
	        file = FALSE
	        backend = /u1/local/cap/silent

where silent is soft-linked to papif in /u1/local/cap, and
in /etc/cap.printers I have

	silent=Silentwriter:LaserWriter@*

which is the correct LocalTalk name.

I suspect I am not providing enough info (a la BSD printcap),
but can't find enough info using either INFO or the CAP docs.
Any help would be much appreciated.

Bruce Johnson
Dept of Chem
Rice Univ
Newsgroups: comp.unix.aix,comp.windows.x
From: wijkstra@fwi.uva.nl (Marcel Wijkstra (AIO))
Subject: Re: Hanging X11R4 server under AIX3.2.1
Organization: FWI, University of Amsterdam
Date: Thu, 20 Aug 1992 08:53:03 GMT

tom@bim.itc.univie.ac.at (Tom Kovar) writes:

#  I am running AIX3.2.1 on more RS6000's (550's and 220's). In some cases
#(not quite reproducible), when the Xserver exits, the console keeps hanging.
#That means, that the Xserver process really exits, but the background with
#traces of some of the windows stays on the screen, and the console + keyboard
#are dead. The only help I know is reboot :(

#  I noticed, that this happens mostly in cases where there are many living
#clients, that should be killed by the exiting server. As we mostly exit
#the server by exiting the window manager, I have rewritten the twm, so that
#it tries to delete all of the windows when exiting. It helps much, i.e.
#the hangups do not occur that often, but nevertheless...

I had similar problems with AIX 3.1.5 . Sometimes, X got killed in a bad
way, and the entire X screen stayed on the display. More like your problem:
when I quit twm, the display is cleared, but when the normal text screen
appears, shades of my xterms are put over it, and the screen freezes as
well.
Both can be solved by sending a 'clear screen' to /dev/hft:

        tput -Thft clear > /dev/hft
or
	clear > /dev/hft
or even
	echo 'some text' > /dev/hft

from another terminal (since the machine is not dead, only the console
hangs).

I automated this by having a little process running in the background, that 
clears the screen every once and a while (e.g. every minute) when nobody
is logged in on the console:

	#!/bin/csh
	# Usage: 'cleard &' somewhere in your .login
	
	#
	# Is cleard already running?
	#
	if (`ps ax | grep cleard | wc -l` > 2)\
	        exit
	#
	# Loop and check every minute for a process starting with a '-'
	# like '-csh'
	#
	while 1
	        if (`ps a | grep hft | take +25 | grep '^-' | wc -l` == 0) then
	                tput -Thft clear > /dev/hft
	        endif
	        sleep 60
	end
	
'take +25' strips off the first 25 characters of a line, since I only
need the process name (COMMAND), and not the PID, STAT, TTY and TIME fields.
There must be other ways to accomplish this, but it works for me, so why
change, aye?
	
A better solution than starting 'cleard' on every login would be to start a
similar process on boot-up, but I'm just an ordinary user, far from root.
A backdraw of my approach is, that it may clear the screen just when someone
is trying to log in, i.e. typing his password. I don't know if it can do
any serious harm, though.

Hope it helps.
Marcel.
-- 
 X	   Marcel Wijkstra   AIO   (wijkstra@fwi.uva.nl)
|X|	     Faculty of Mathematics and Computer Science	
 X	       University of Amsterdam   The Netherlands
======Life stinks. Fortunately, I've got a cold.========
From: repass@futserv.austin.ibm.com (James Repass)
Newsgroups: comp.unix.aix
Subject: Re: umount, <defunct>
Keywords: umount <defunct>
Date: 19 Aug 92 19:39:57 GMT
Reply-To: repass@futserv.austin.ibm.com (James Repass)
Organization: IBM Corporation, Advanced Workstation Division

> From: hhw0@harvey.gte.com (Hansel Wan)
> Subject: umount, <defunct>
> Keywords: umount <defunct>
> Date: 18 Aug 92 22:21:44 GMT
> 
> 
> 1. How do you get rid of <defunct> processes?
>    I tried the usual kill and kill -9 but they refuse to die.
>    They seem to stick around until the next cold boot.
> 
> 2. How do you check who/what is keeping a harddisk device busy?
>    When I tried to unmount a harddisk (/home), it gave me a message
>     "DEVICE BUSY", even though I was the only one logged in (as root)
>     and other login is disabled and my current working directory is
>     not in it.  How do I check what application or daemon is keeping
>     it in a busy state?

Check out the fuser command.

> 
> Thanks in advance for anyone who response.
> 
> - Hansel (hhw0@gte.com)



Thanks,        Jim Repass  | Internal - jim@repass.austin.ibm.com
  ____         IBM-AWD-FST |     VNET - REPASS@AUSTIN
   / . __      Austin, Tx. | Internet - repass@futserv.austin.ibm.com
(_/ / ///      Int.ZIP 9461| Phone    - (512)-838-8507 (tie)-678-8507
_____________________________________________________________________ 
I speak, therefore I am.
I do not speak for the company, it does not speak for me!
From: duanji@prism.CS.ORST.EDU (Jinfan Duan)
Newsgroups: comp.unix.aix
Subject: look for FORTRAN compiler on AIX RS/6000 workstation
Date: 13 Aug 92 00:23:12 GMT
Followup-To: duanji@prism.cs.orst.edu
Distribution: usa
Organization: Oregon State University, Computer Science Dept.

Hi, there:

I am wondering that somebody can help me on compiling some FORTRAN
programs on AIX RS/6000 workstation. We have a RS/6000 system with
FORTRAN run time environment, but the compiler is not there. I got
several FORTRAN source code program and want to run them on our 
workstation. I don't know if it is possible that I send these programs
to somewhere on this network for compiling and send the compiled back
to me. If this method works, then is there anybody can compile the
programs for me on his/her machine? The programs are not big.

Thank you for your help. Please direct your response to the following
address:

	duanji@prism.cs.orst.edu
Newsgroups: comp.unix.aix
Subject: help
From: nuessle@vax1.umkc.edu
Date: Fri, 14 Aug 1992 05:14:24 GMT
Organization: University of Missouri - Kansas City

	How long should it take to get the catalogues of the IBM manuals for
AIX?

	Requested catalogues from our IBM rep (working for an all blue, small
government shop) 2 months ago.  Was told they were standard, and we would get
the catalogues (also requested for OS/2 & OS/400 at same time).

	Haven't seen them since.  No due date from SE.  She is trying to push
System Admin courses, though.

	Have 3 candidates for Sys Admin, and about 9 other potential users on
recently inherited RS/6000 for running small, somewhat NIC application. None
have Unix experience.  They want User's Manuals.  Want to become decent users
before any go to Sys Admin school.

	What is normal delay for support of this type?

*		*	*				*		      *
Nick Nuessle	*  PE	*   nuessle@vax1.umkc.edu	*   Only my viewpoints
Student		*KA0ZAP	*   nuessle@umkcvax1.bitnet	*   unless noted.
	UMKC:  Pushing back the Frontiers of Ignorance in the Fly-Over Zone

?   What is the annual percentage of scholarship athletes passing the TOEFL?  ?