HDTenEightyP/NetNews huggingface dataset:
From: lusgr@chili.CC.Lehigh.EDU (Stephen G. Roseman)
Newsgroups: comp.unix.aix
Subject: Re: Weird bug in AIX 3.2.2 ls
Date: 6 Nov 92 16:51:23 GMT
Organization: Lehigh University
X-Newsreader: Tin 1.1 PL5

Leslie D Peters (lpeters@postmaster@hq.af.mil) wrote:
: We've experienced a very strange "bug" in the ls command:  We have
: a directory that is shared by N users (N >= 200), and happened
: to perform 'ls -l' in the directory.  It goes for a while, then
: Seg fault(coredump)!  We think we've tracked it down: it only 
: occurs when the usernames are displayed (most every file is owned
: by a different person).  The -g and -n options work like a champ;
: only -l and -o (which shows owner and not group) cause it.
: Anyone else see this happen, and if so, HELP!!!!!
: 
: Thx1.0e6 in advance...
: 
: Les Peters
: 

	Yes, we had that in 3.2.2.  It seems to be fixed in 3.2.3.

Steve

: -- 
: /============================================================================\
: |                    ___                     |                               |
: |       ___....-----'---`-----....___        | I haven't lost my mind --     |
: | =========================================  |                               |
: |        ___`---..._______...---'___         |  it's backed up on            |
: |       (___)      _|_|_|_      (___)        |   tape somewhere.             |
: |         \\____.-'_.---._`-.____//          |                               |
: |           ~~~~`.__`---'__.'~~~~            | lpeters@marge.hq.af.mil       |
: |                   `~~~'                    |                               |
: \============================================================================/

--
----------------------------------------------------------------------------
Steve Roseman
Lehigh University Computing Center
lusgr@chili.CC.Lehigh.Edu
From: jgabriel@academ01.mty.itesm.mx (Ing. Juan Gabriel Ruiz)
Newsgroups: comp.unix.aix
Subject: Re: Weird bug in AIX 3.2.2 ls
Date: 12 Nov 92 16:03:22 GMT

lpeters@postmaster@hq.af.mil (Leslie D Peters) writes:

>We've experienced a very strange "bug" in the ls command:  We have
>a directory that is shared by N users (N >= 200), and happened
>to perform 'ls -l' in the directory.  It goes for a while, then
>Seg fault(coredump)!  We think we've tracked it down: it only
>occurs when the usernames are displayed (most every file is owned
>by a different person).  The -g and -n options work like a champ;
>only -l and -o (which shows owner and not group) cause it.
>Anyone else see this happen, and if so, HELP!!!!!

  Try the PFT U407548 it fixes the problem, or use li -l :)

  greetings
--
Juan Gabriel Ruiz Pinto                Internet:  jgabriel@mtecv2.mty.itesm.mx
Soporte Equipos UNIX                   NeXT-mail: jgabriel@roxette.mty.itesm.mx
Depto. de Tecnologia Computacional 
I.T.E.S.M. Campus Monterrey
Newsgroups: comp.unix.aix
From: jrh@jrh.uucp (James R. Hamilton)
Subject: Re: PC shutdown-RISC Logoff
Fcc: outbox
Organization: private system, Toronto, Ontario
Date: Sun, 08 Nov 1992 20:40:45 GMT

In article <16897B98D.CRAWFD@lexmark.com> CRAWFD@lexmark.com writes:
>We have several users accessing an application running on the RISC/6000 from
>their pc running different X-Windows emulators.  The problem is these users
>often shutdown their pc without logging off the RISC/6000.  Any processes
>they we're running remain "active".  Is there any way to automatically log
>the user off the system when his/her pc is shutdown??  Or what would be
>the preferred method of killing inactive processes??  Is there any process
>that can be started to run in the background to check for inactive processes??
> 
    On a previous release of the O/S that I'm using SIGTERM wasn't sent to
    all process owned by a user when they hung up their telephone lines 
    rather than logging off correctly.  To work around this problem I wrote 
    the following program that I ran once every 5 min from Cron.  It checks 
    for an idle port.  If the user does nothing for an extended (user 
    changeable option) then they will forced off.  

    You might be able to use this or a derivitave of it to solve your problem.

                                --jrh


#!/bin/ksh
#----------------------------------------------------------------------
#
#			FILE:	inactive
#			Author:	James R. Hamilton
#			Date:	92.01.18 @ 22:13:21
#
#----------------------------------------------------------------------

    Usage="${0##*/}: USAGE ${0##*/} [-t port] [-d delay]"
    Port="tty0"
    Delay="10" 	 	#must not exceed 59
    set -- $(getopt "t:d:" $*)
    if [ $? != 0 ] ; then
	print "${0##*/}: Error in command line arguments"
	print "${0##*/}: $Usage"
	exit -1
    fi
    while [ "$1" != "--" ] ; do
	case $1 in
	    -d)
		shift
		Delay="$1"
		;;
	    -t)
		shift
		Port="$1"
		;;
	esac
	shift
    done
    who -u | while read Line ; do
	set -- $Line
 	if [ "$2" = "$Port" ] ; then
            Time=$(print "$Line"| cut -c38-42)
	    Hours=${Time%%:*}
	    Minutes=${Time##*:}
	    [ "$Minutes" = "" ] && Minutes=0
	    [ "$Hours" = "" ] && Hours=0
	    if [ "$Hours" -gt 0 ] || [ "$Minutes" -gt "$Delay" ] ; then
		print "$Port idle for $Hours:$Minutes ... executing kill -1 $7"
		kill -1 "$7"
	    fi
	    exit 0
	fi
    done

#
#-----------------------------> End of File <--------------------------
-- 

James R. Hamilton                              inet: jrh@jrh.gts.org
telephone: +1 416 493 4162                     uunet: ...!uunet!jrh!jrh
Toronto, Canada                                work: jrh@torolab6.vnet.ibm.com
Newsgroups: comp.unix.aix
From: glenn@rigel.econ.uga.edu (Glenn F. Leavell)
Subject: Re: secure/non-secure terminal designation
Organization: University of Georgia, Athens
Date: Fri, 6 Nov 1992 00:21:23 GMT

In article <HARTMANS.92Oct31224752@npc.ece.utexas.edu>,
hartmans@npc.ece.utexas.edu (Sam Hartman) writes:

>In article <1992Oct30.140845.6281@rigel.econ.uga.edu>,
>glenn@creator.ucns.uga.edu (Glenn Leavell) writes:
>
>Glenn> Is there a way to configure AIX so that the user 'root' can only login
>Glenn> directly from specified (secure) terminals?  In the case where a direct
>Glenn> login is not allowed, the 'su' command would have to be used.
>Glenn> In SunOS this can be done with the 'secure' designation
>Glenn> (or lack thereof)

>	In smit users, you can set the ttys from which a certain user
>can log in. Set root's ttys to whatever you want (comma separated
>list), and that will fix the problem. Also, don't forget to disable
>telnet logins of root (especially if you're on the internet).

Thanks for the response.  This solution can be used to force direct root
logins to be done at the console, but then I can't even su to root
unless I'm at the console.  Note that "su = true" is set.

--  
Glenn Leavell  University of Georgia  glenn@creator.ucns.uga.edu  706-542-5110
     University Computing and Networking Services, Athens, GA 30602-1911         

Newsgroups: comp.unix.aix
From: jrh@jrh.uucp (James R. Hamilton)
Subject: Re: swap instruction in assembler?
Organization: private system, Toronto, Ontario
Date: Sun, 08 Nov 1992 02:50:05 GMT

In article <471@bertha.HyperDesk.com> andy_d@hyperdesk.com writes:
>
>I need to implement a semaphore-like test-and-set operation in assembler
>on the RS/6000.  The functionality is: if an address contains a 0, set
>it to 1 and return 1; if it contains a 1, return 0.
>
>Since the address is in shared memory, I need to worry about another
>process getting the time slice between my test and my set, and setting
>it before I get the chance to set it myself.
>
>What I'd like to do is:
>     store 1 in register
>     swap register with address
>     if register contains 1, the semaphore belongs to somebody else,
>          so return 0
>     otherwise return 1
>
>My problem: I don't see a swap instruction in the manual.  Is there
>another instruction that might do what I want?
>
    The POWER architecture doesn't implement an atomic hardware swap 
    instruction.  Atomic compare and swaps are implemented via the
    AIX system call cs (compare and swap).  The following will do what
    you want (without leaving C):

        int *latch;
            .
            .
            .
        if (cs(latch, 0, 1) == 0 )
            /* success: latch was set to 1 */
        else
            /* failed: latch was not changed (someone else has it) */


    --jrh
-- 

James R. Hamilton                              inet: jrh@jrh.gts.org
telephone: +1 416 493 4162                     uunet: ...!uunet!jrh!jrh
Toronto, Canada                                work: jrh@torolab6.vnet.ibm.com
Newsgroups: comp.unix.aix
From: CRAWFD@lexmark.com
Subject: PC shutdown-RISC Logoff
X-Disclaimer: These views are the poster's and not necessarily those of Lexmark
Organization: Lexmark International, Lexington, KY
Date: Fri, 6 Nov 1992 17:11:41 GMT

We have several users accessing an application running on the RISC/6000 from
their pc running different X-Windows emulators.  The problem is these users
often shutdown their pc without logging off the RISC/6000.  Any processes
they we're running remain "active".  Is there any way to automatically log
the user off the system when his/her pc is shutdown??  Or what would be
the preferred method of killing inactive processes??  Is there any process
that can be started to run in the background to check for inactive processes??
 
Thanks,
Mark
From: raeram@kittyhawk.aero.rmit.OZ.AU (Richard A. Muirden)
Newsgroups: comp.unix.aix
Subject: "License Rwquest Failed:": nlslib_no_svrs_fnd - HELP! (CATIA)
Date: 13 Nov 92 09:12:40 GMT
Organization: RMIT Computer Centre
NNTP-Posting-Host: kittyhawk.aero.rmit.oz.au

running CATIA, this is the FULL output I get after running catini, doubtless
to say I get nothing else:

catia@eagle.aero.rmit.OZ.AU-> catini
"License Request Failed:": nlslib_no_svrs_fnd
Product Name    : "BASE"
Version         : "3.2"
Start Date      : "0"
Expiration Date : "0"
Cannot get BASE license

does anyone have any ideas? This is after an upgrade to 3.2.2,
before everything was working wonderfully...

also nfs is fouled :(

-richard

--
Richard Muirden, System Administator, RMIT.Aero. Engineering.. Office: 10.12.25
raeram@kittyhawk.aero.rmit.OZ.AU, s892024@minyos.xx.rmit.OZ.AU 'phone: 660-3142
ram@lionet.wesley.OZ.AU, ram@coombs.anu.edu.au - in case you don't like RMIT! :)
----------------- Fanatic of Shostakovich and "Star Trek" ---------------------
From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
Newsgroups: comp.unix.aix
Subject: Re: Mail & News on RS/6000
Date: 12 Nov 92 00:37:08 GMT
Article-I.D.: mintaka.1992Nov12.003708.25763
Distribution: na
Organization: /etc/organization


In article <92307.130607ACAD8012@RyeVm.Ryerson.Ca> Paul Ribeiro
<ACAD8012@RyeVm.Ryerson.Ca> writes:
>
> Has anyone done any work on porting Pine/Imap to a 6k box?

It was very easy.

It was actually significantly harder to port imapd to the BSD machine
which now hosts it.

-- 
 \  /   Charles Hannum, mycroft@ai.mit.edu
 /\ \   PGP public key available on request.  MIME, AMS, NextMail accepted.
Scheme  White heterosexual atheist male (WHAM) pride!
Newsgroups: comp.unix.aix
From: chsh457@chpc.utexas.edu (Wen-ching Hu)
Subject: 1.37 GB  installation
Organization: The University of Texas System - CHPC
Distribution: comp.unix.aix
Date: Fri, 6 Nov 92 23:19:47 GMT

  I installed a 1.37 GB hard drive in RS6000 530H running AIX 3.2. I have     
  a few questions of which answers can not be found in the manual.
  (1) What SCSI ID should be set ?
  (2) Should I update AIX 3.2 to 3.2.1 ? Because "Proper Support and
      Maintence of the 1370 MB DASD Feature requires AIX 3.2.1" is
      mentioned in the manual. 
  (3) What is DASD ? PTF ? RETAIN ?
  I should call IBM first, however it's 5:10pm right now. I hope I can get
  the answers during this weekend.
		   Thanks
				   Wen-ching Hu
Newsgroups: comp.unix.aix
From: lucien@watson.ibm.com (Lucien Van Elsen)
Subject: Re: Minor X11 problems (AIX 3.2.0)
Date: Wed, 11 Nov 1992 14:53:49 GMT
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: IBM T.J Watson Research Center

valdes@geosun.uchicago.edu (John Valdes) writes:
>...
>#
># Load default resources
>#
>
>if [ -f $HOME/.Xdefaults ]; then
>    xrdb -load $HOME/.Xdefaults
>else
>    xrdb -load $XHOME/lib/Xdefaults  # XHOME == /usr/lpp/X11, which as already
>fi                                   #   been defined elsewhere
>
>#
># Start default clients
>#
>
>aixterm &
>xclock -geometry 100x100-5+5 &
>
># Start up window manager last
>
>mwm
>
>The problem I've been having with this is that xrdb runs, buts doesn't
>load the resources from the appropriate file.  Aixterm, xclock and mwm
>all start properly, however.  If I run xrdb manually from the aixterm
>that starts up, though, xrdb works fine.  The problem occurs
>regardless of when xrdb is run; if I start aixterm and xclock before
>xrdb, aixterm and xclock start, but xrdb still fails to run properly.

  This problem is almost certainly due to the fact that the X11R4 X server
(which is new to 3.2) resets itself when the number of clients connected to
it drops to zero.  This means any resources/keybindings/etc will be lost.
Assumming there is nothing that keeps an open connection to the X server
invoked before the xrdb, the server will reset itself as soon as the xrdb
exits.
  Luckily, there's an easy way to work around this, using a client called
"xsleep".  It does nothing but keep a connection to the X server open for a
specific amount of time, and then exit- you'll just need to put a "xsleep 60
&" before your invocation of xrdb.  xsleep is available from export.lcs.mit.edu
in /contrib/xsleep.tar.Z.

	-Lucien
--
-----------------------------------------------------------------------
Lucien Van Elsen                                          IBM  Research
lucien@watson.ibm.com                                     Project Agora
From: Christophe.Wolfhugel@grasp.insa-lyon.fr (Christophe Wolfhugel)
Newsgroups: comp.unix.aix
Subject: Re: Using ACLs (with acledit) on 3.2.0
Date: 10 Nov 1992 21:24:05 +0100
Organization: INSA Informatique, Lyon, France
NNTP-Posting-Host: grasp1.univ-lyon1.fr

In article <1992Nov6.191913.4418@awdprime.austin.ibm.com> jfh@greenber.austin.ibm.com (John F Haugh II) writes:
>See "Genderal Concepts and Procedures", page 24-14. 

Unfortunately nor the Info database nor the man page gives any reference 
to that page. An update would be welcome.

-- 
Christophe Wolfhugel    |    Email: Christophe.Wolfhugel@grasp.insa-lyon.fr
  "Pour le bien-etre de tous, il est interdit de pisser dans le metro."
From: sk@thp.uni-koeln.de (Sebastian Kremer)
Newsgroups: comp.unix.aix
Subject: Re: /tmp Corrupted
Date: 6 Nov 92 17:50:46
Organization: Institute of Theoretical Physics, University of Cologne, F. R.
	Germany
NNTP-Posting-Host: sun4.thp.uni-koeln.de
In-reply-to: lui@netcom.com's message of Thu, 5 Nov 1992 22:58:24 GMT

>>> In article <1992Nov5.225824.3656@netcom.com>, lui@netcom.com (Stephen Lui) writes:

Stephen> Recently our /tmp file system started to fill up. I went to
Stephen> /tmp and deleted unnecessary files. However, this did not
Stephen> release any space in the file system according to df. I went
Stephen> ahead and deleted all of the files in /tmp and the file
Stephen> system was still 100% full!

I've seen the same behaviour some months ago on a 550 under AIX 3.1.5.
It vanished after rebooting and never happened again so far.  I don't
know of a fix or explanation.
--

---------------------------------------------------------------------------
Sebastian Kremer <sk@thp.Uni-Koeln.DE>
Institute of Theoretical Physics, University of Cologne, F. R. of Germany

On May 17, 1992 I started a new job without email access (yet).  I can
read my mail only occasionally.  The mail address will continue to
work, but don't expect answers in less than a week.
---------------------------------------------------------------------------
Newsgroups: comp.unix.aix
From: dedourek@jupiter.sun.csd.unb.ca (John DeDourek)
Subject: Re: 3270 Problem/Questions
Organization: University of New Brunswick
Date: Thu, 12 Nov 1992 17:36:08 GMT

In article <1992Nov11.195201.23112@bmw.mayo.edu> fisk@mayo.edu writes:
>
>We have run across a couple of problems with the 3270 emulation on AIX.
>
>1.  According to the documentation, when you telnet or tn to a system that
>    requires a 3270, it will use the $HOME/.3270keys.  We have never gotten
>    this to work...any ideas?
>
Note that telnet is an executable in /usr/bin.  Note that tn and tn3270
are symbolic links in /usr/ucb to the program /usr/bin/telnet.  The
program does behave differently when invoked by each of the three
names.  As noted telnet and tn use $HOME/.3270keys.  Note that
tn3270 does NOT.  Make sure that you are not invoking the command via
the tn3270 name.  Actually, I once tried to understand all the information
in the info page for telnet/tn/tn3270 and got myself totally confused.
I tried some experiments but ran out of time.  Perhaps there is a more
detailed description with examples somewhere.  Pointers would be
appreciated.

dedourek@jupiter.sun.csd.unb.ca
From: blarson@mizar.usc.edu (Bob Larson)
Newsgroups: comp.unix.aix
Subject: Hooking HP Laserjet 3D printer to RS6000/560
Date: 11 Nov 1992 18:37:59 -0800
Organization: USC Software Systems, home of TOADS
Distribution: world
NNTP-Posting-Host: mizar.usc.edu
Keywords: printer duplex aix3.2

I have an HP Laserjet 3d duplex printer hooked to an IBM RS6000/560
running aix 3.2.  (No postscript on the printer.) When installing the
printer, I told the rs6000 it was a laserjet 3, being the closest
printer option in the menu.  It works fine with one major exception:
every time I try to print duplex (with the -Y2 option to qprt) all I
get is an error message on the console or in mail that -Y flag is
invalid, and nothing is printed.  (See exact error message below.)
There doesn't seem to be any option in the printer configuration to
specify that the printer is duplex, and the laserjet 3 definition
includes the escape sequences needed for selecting duplex operation.
IBM sotware tells me to contact the local rep, and he doesn't have a
clue about printers.  (After I get this one fixed, I assume that I can
use the same solution on a laserjet 3si on another rs6000.)
Any clues, or is the -Y option documented and doesn't work?

the-count% ls -al|qprt -Ppcl -Y2 -
Message from blarson on the-count (UNKNOWN) [Wed Nov 11 18:29:27 PST
1992] ...
Message from queueing system:
=====> MESSAGE FROM PRINT JOB 338 (STDIN.14186) <=====
0782-006 -Y flag not expected.
        Check the flags.
<EOT>
-- 
Bob Larson (blars)	blarson@usc.edu			usc!blarson
	Hiding differences does not make them go away.
	Accepting differences makes them unimportant.

Newsgroups: comp.unix.aix
From: jsantos@godzilla.ma30.bull.com (James Santos)
Subject: Problems with mail on AIX 3.2
Organization: Bull HN Informations Systems Inc.
Date: 10 Nov 92 20:57:26 GMT

Hi,

	I am having a sporadic problem with mail where incoming mail
bounces with the following message:

   ----- Transcript of session follows -----
bellmail: failed to create lock file /usr/spool/mail/jsantos.lock after 100 tri
es
554 <jsantos@holodeck.ma30.bull.com>... unknown mailer error 2

Anyone have any idea why this is happening.  I'm running AIX 3.2 on a
RS6000 Model 320H.

Thanks,

Jim
Newsgroups: comp.unix.aix
From: toddr@aix02.ecs.rpi.edu (R Lindsay Todd)
Subject: Re: chown() symbolic links?
Organization: Rensselaer Polytechnic Institute, Troy, NY
Date: Wed, 11 Nov 1992 15:41:41 GMT

I opened a PMR this summer about the chown() system's call inability to
change the ownership on symbolic links, as documented, and was told that
the documentation would be changed.  They said the functionality of chown()
was changed for "POSIX compliance", many people had complained about it.

I asked, "How then does one change the ownership of a symbolic link?"  I
was told that this does seem to be a missing feature; one could remove the
link, setuid, and recreate the link if one really needed it.  "Why would
you ever need to change the ownership of a symbolic link?"

I haven't tried if tar, pax, or restore get this right, but these are
programs that would need to change the ownership of a link.  Of course,
I also had such a program.

My PMR also resulted in a design change request, DCR 62508.  I haven't
been able to find out what happened to it, though.
-- 
Lindsay Todd, Systems Programmer, ECS, Rensselaer Polytechnic Institute, Troy NY
toddr@rpi.edu  (518) 276-2605
From: shair@barolo.cso.uiuc.edu (Bob Shair)
Newsgroups: comp.unix.aix
Subject: Re: EMERGENCY!!!!!!!!!!!!!
Date: 12 Nov 92 22:53:22 GMT
Article-I.D.: news.BxMKwy.p3
Reply-To: shair@vnet.ibm.com
Distribution: comp
Organization: IBM Champaign

jmmannin@eos.ncsu.edu (JAMES MCCOTTER MANNING) writes:

>PLEASE HELP!
>I can't boot off of rootvg, and when I booted off of floppy
>and tried to getrootfs, I get the error that /dev/hd4 needs
>64k of free space, and that I should delete files until I have
>that much free, but without root mounted, I don't know how to get
>to /dev/hd4 (/usr) to delete anything.
>HELP!!!!!
>jmm 

/dev/hd4 is the root (/) filesystem on every AIX V3 system I've used.
If it's not on yours, the getrootfs script is perhaps assuming that it
is.  Try this to free up some space in /

     1) Put key in service mode and boot from diskettes.                   
     2) Choose Option #4 to get the minimal shell.                         
     3) Run "rm -f /usr/lpp/bosinst/*" to free up some space in the        
        ram filesystem.                                                    
     4) Run "importvg -y rootvg -f hdiskX", where hdiskX is the name of    
        the external disk.                                                 
     5) Run "varyonvg -f rootvg".  Ignore the error that is reported.      
     6) Run "mount -o log=/dev/hd8 /dev/hd4 /mnt"                          
     7) Run "cd /mnt".  /mnt contains the filesystem that is root on your  
        machine normally.                                                  
     8) Remove files from /mnt to free the space needed to boot properly   
        (use echo *, since 'ls' hasn't been mounted).  The best candidates 
       for deletion are smit.log and smit.script.
--

Bob Shair                          shair@vnet.ibm.com
Scientific Computing Specialist    SHAIR@UIUCVMD (bitnet)
IBM Champaign
From: fisk@cvdv73.mayo.edu (Tom Fisk)
Newsgroups: comp.unix.aix
Subject: Has ANYBODY got x3270 to work on AIX??
Date: 12 Nov 92 22:54:37 GMT
Reply-To: fisk@mayo.edu
Organization: Mayo Clinic, Rochester, MN


Today I spent entirely too much time trying to get the public domain x3270 
working on AIX.  After debugging it looks like we are waiting for input from 
the mainframe during a read.

Have you gotten x3270 to work?  If so please let me know!  Thanks!  Tom.
--
-------------------------------------------------------------------------------
Thomas B. Fisk          +----------------------------+  Internet: fisk@mayo.edu
Mayo Clinic             |   If you don't know where  |  Voice: (507) 255-4341
200 First Street SW     |  you're going you'll never |  FAX: (507) 255-5484
Mail Stop 2D-337 STM    |         get there.         |
Rochester, MN  55905    +----------------------------+
-------------------------------------------------------------------------------