HDTenEightyP/NetNews huggingface dataset:
From: russotto@vnet.ibm.com (Matthew T. Russotto)
Date: Thu, 7 Jan 93 09:15:52 EST
Newsgroups: comp.unix.aix
Subject: Re: static data no in the symbol table?
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.1

In <sfGpsXC00WoiFTzn8g@andrew.cmu.edu> Robert Andrew Ryan writes:
>It appears that under some circumstances xlc fails to output symbols for
>static data.  For example, compiling:
>
>struct classheader {
>    long version;
>    char *name;
>    char *key;
>    char *data;
>};
>
>static struct classheader atom_classheader = {
>    4,
>    "atom",
>    "atom",
>    0x92382,
>};
>
>gives:
>
>% nm foo.o
>         U ._ptrgl
>00000000 d TOC
>00000000 d _foo$c$
>00000008 d _foo$c$
>
>Anyone know if this is a bug or a feature?  Any workarounds?

Neither.  All the static data for the source file is in those sections
with the '$' in them.  Statics don't get their own symbol entries-- they
don't need them.
(BSS data goes in sections with '@' in them)
From: ronald@lowt.phys.tue.nl (Ronald Aarts)
Newsgroups: comp.unix.aix
Subject: Re: Paging spaces fill - How to fix?
Date: 11 Jan 93 07:37:20 GMT

RBNTJC@rohvm1.rohmhaas.com (Thomas J Cozzolino) writes:

>...
>  2). Is there a way to "clean up" paging space disks w/o rebooting?

You can try a "/etc/slibclean" (to be executed as root). It frees memory that
is occupied by shared libraries. It worked in our case, but I forgot what 
caused the problem (X or something else). Actually we put it in root's crontab
to be executed regularly.

--
Ronald Aarts
Eindhoven University of Technology  | Internet: ronald@lowt.phys.tue.nl
Physics Department, P.O. Box 513,   |    Phone: +.31.40.474213
5600 MB Eindhoven, The Netherlands  |      Fax: +.31.40.453587
From: austinaz@rcwusr.bp.com
Newsgroups: comp.unix.aix
Subject: Performance monitoring for IBM/HP/SUN
Date: 8 Jan 93 16:22:16 -0600
Organization: BP Research, Cleveland, OH (USA)

Is there a CPU/memory/IO performance monitoring program that will not only
run on the RS/6000 580, but also on the HP9000-750s and SUNs?
From: ccaaand@ucl.ac.uk (Andrew Dawson)
Newsgroups: comp.unix.aix
Subject: Re: passwd -f not resseting uid before exec ? (3.2)
Date: 5 Jan 93 09:26:10 GMT
Reply-To: ccaaand@ucl.ac.uk
Organization: Bloomsbury Computing Consortium

Christophe.Wolfhugel@grasp.insa-lyon.fr (Christophe Wolfhugel) writes:

>It is our policy not to allow users to change their GECOS field.  
>But with 3.2, I did not find a solution to succeed.
>I have modified access rights to chfn acordingly.  A simple user can't
>execute it anymore.
>BUT... "passwd -f" does a call of chfn, and it succeeds. So I
>guess that it does forget to reset the UIDs before calling the chfn.

This does seem to be the case. Some Unix's actually have passwd, chfn and
chsh linked to each other and look at argv[0] to see which was invoked, but
AIX does actually seem to exec the alternative command.

>Is there any usable solution ?

If you're using NIS, then get rid of passwd and link it to yppasswd. Otherwise,
set the permissions of chfn to 0000 or rename it to something other than chfn.
The latter will let root run it by specifying the new name. The former will
not.

Andrew.
-- 
*+*+*+*  Ziggy reports a 99.9% chance that these opinions are personal  *+*+*+*
  ccaaand@ucl.ac.uk (reverse for JANET), UUCP: uunet!mcsun!uknet!ucl!ccaaand,
X.400: /C=gb/ADMD=" "/PRMD=uk.ac/O=ucl/S=ccaaand  (or just try typing "reply")
*+*+*+*+*+ Leapers do it with assistance from neurological holograms *+*+*+*+*+
From: zaphod@src4src.linet.org (Steve Wechsler)
Newsgroups: comp.unix.aix
Subject: Re: /etc/motd - any suggestions?
Date: 5 Jan 93 14:49:27 GMT
Organization: The Source for Source

In article <1993Jan4.024102.29058@ncsu.edu> jmmannin@eos.ncsu.edu (James M Manning) writes:
>Anybody know how to make nice looking letters out of ASCII
>chars?  Or anybody got anything cute?

I usually use the banner program to make letters, then convert them to
italics by indenting each line the appropriate number of spaces (i.e.
if you have 7x7 characters, indent line one 6 spaces, line two 5
spaces, etc.).  I find that italics look pretty nice, and it spares me
the time from creating my own characters (Maybe somebody has a program
that does this automatically).

>Also, `date` doesn't work for showing the date.
>Besides the anal way of putting a continuous crontab entry,
>can that be done?

Put it in /etc/profile.
-- 
Steve Wechsler | zaphod@src4src.linet.org    |    Call Lady Hawke's Castle BBS:
Please respond to my posts via e-mail (post also if you like) |  (516) 226-4630
because my site purges news much faster than I can keep up with it.
"Watch??  I'm gonna pray, man!  Know any good religions?" -- Zaphod Beeblebrox
From: tnr@csd.cri.dk (Torben N. Rasmussen)
Newsgroups: comp.unix.aix
Subject: CDROM drives differences
Date: 8 Jan 93 16:18:03 GMT
Organization: Computer Resources International A/S
X-Newsreader: TIN [version 1.1 PL7]

I have to CD-ROM drives an internal drive and an external drive.
Now I tried running the xcd program to play music on these drives.
But it didn't work on the external drive, only on the internal one.

What is the difference on these two drives? and how can I make the xcd
program work on both the drives? Does anyone have any knowledge about this.



Torben N. Rasmussen

+--------------------------------------+--------------------------------------+
| Torben N. Rasmussen                  | email       tnr@csd.cri.dk           |
| Computer Resources International A/S | phone       +45 45 82 21 00 ext. 3248|
| Bregnerodvej 144                     | direct dial +45 45 82 22 66 + 3248   |
| DK-3460 Birkerod, Denmark            | fax         +45 45 82 01 22          |
+--------------------------------------+--------------------------------------+
From: wrat@unisql.UUCP (wharfie)
Newsgroups: comp.unix.aix
Subject: Re: malloc(0) fails on AIX and nowhere else I could find ...
Date: 12 Jan 93 23:44:37 GMT
Organization: UniSQL, Inc., Austin, Texas, USA

In article <1iv50gINNaih@life.ai.mit.edu> mycroft@hal.gnu.ai.mit.edu (Charles Hannum) writes:
>> Trying to malloc() 0 bytes on AIX fails, [...]
>It does *not* fail; it returns NULL.  Your only problem is that you do
>not recognize the difference.

	Well, uhh, not really.  On most?...many?... other platforms
malloc() only returns NULL if it couldn't allocate the requested block.
The fact that AIX malloc doesn't is technically legal but a pain...  Lots
of code checks for out of memory conditions with if (!malloc(foo))

>GNU malloc() does the same thing, BTW.

	Nope.  At least, the version I have doesn't...
From: Christophe.Wolfhugel@grasp.insa-lyon.fr (Christophe Wolfhugel)
Newsgroups: comp.unix.aix
Subject: Re: /etc/motd - any suggestions?
Date: 9 Jan 1993 09:49:21 +0100
Organization: INSA Informatique (Grasp), Lyon, France
NNTP-Posting-Host: grasp1.univ-lyon1.fr

tom@sauveur.in-berlin.de (Th.H. v. Kamptz):
>     mknod /etc/motd p

No this won't work.  I see 2 reasons:

1) Never do this if you can't ensure that there will ALWAYS be a producer on
   the other side of the pipe.  Otherwise you won't really log into the
   system.
   Using an appropriate entry in inittab could be a solution.

2) Named pipes generally work fine in a multi-producers, one reader
   environment.  If you have 2 or more simultaneous logins reading the pipe,
   how do you guess it will work ?  Each logins will get parts of your
   message.

-- 
Christophe Wolfhugel    |    Email: Christophe.Wolfhugel@grasp.insa-lyon.fr
From: paul@acus1.cc.uky.edu (paul linton)
Newsgroups: comp.unix.aix
Subject: SCSI device mirroring
Date: 12 Jan 93 14:37:48 GMT
Distribution: usa
Organization: University of Kentucky

I have (2) 2.2G SCSI2 harddrives hooked up via separate SCSI2 cards
on a model 560.  I want to mirror them and can't find anything in
info (or smit).  Anyone have a document # or info "search for" that
would point me in the right direction?

Thanks,

Paul
From: horst@faui63.informatik.uni-erlangen.de (Horst Luehrsen)
Newsgroups: comp.unix.aix
Subject: Re: How do i get new man page entries into the system?
Date: Mon, 11 Jan 1993 09:33:55 GMT
Organization: IMMD 6 - Lehrstuhl fuer Datenbanksysteme
Distribution: world
Reply-To: horst@faui63.informatik.uni-erlangen.de (Horst Luehrsen)
NNTP-Posting-Host: faui63.informatik.uni-erlangen.de


In article <197@kixtal.UUCP>, micjrs@mica.mic.ki.se (Richard Soderberg, MD) writes:
>From: micjrs@mica.mic.ki.se (Richard Soderberg, MD)
>Newsgroups: comp.unix.aix
>Subject: How do i get new man page entries into the system?
>
>I've recently added a piece of freeware to our system. This freeware came 
>with its own man -entry in traditional (?) format.
>How do i get the system to recognize this new entry ? Where do i put
>the file, which programs will have to be run to get it into the system
>etc.


Put the man pages in /usr/man, eg. /usr/man/man1/tcsh.1 for the tcsh man page.
Unter AIX 3.1.10, there is an shell script /usr/lib/makewhatis, this can be
used to update the makewhatis-database /usr/man/whatis, so apropos and whatis
know about the added manpages.

        HL

--
 Horst Luehrsen <luehrsen@informatik.uni-erlangen.de>
 Martensstrasse 3, W-8520 Erlangen
 Tel: +49-9131-857884  Fax:+49-9131-32090
 ** No keyboard - Press F1 to continue! **
      
 Horst Luehrsen <luehrsen@informatik.uni-erlangen.de>
 Martensstrasse 3, W-8520 Erlangen
 Tel: +49-9131-857884  Fax:+49-9131-32090
 ** No keyboard - Press F1 to continue! **
Newsgroups: comp.unix.aix
From: christes@socrates.umd.edu (Skip Christensen)
Subject: Re: UNIX Editors
Organization: University of Maryland University College
Date: Wed, 6 Jan 1993 13:08:56 GMT

There is an editor called "cpeditx" which is supposed to be a subset
of xedit.  You'd have to ask and IBM SE for it as it comes from
an IBM tools disk

Newsgroups: comp.unix.aix
From: swan@austin.ibm.com (Randal C. Swanberg)
Subject: Re: Adding SCSI OSDISK
Originator: swan@swan2.austin.ibm.com
Date: Thu, 7 Jan 1993 19:15:17 GMT
Organization: IBM


In article <19930107.062511.795@almaden.ibm.com>, russotto@vnet.ibm.com (Matthew T. Russotto) writes:
> 
> Many disks have a jumper which set whether they spin-up on power-on
> or only when they receive a SCSI start.  Would an request to spin up
> when the disk was already spun up give that result code?
> 
> Some disks always spin up on power up, and probably wouldn't like SCSI
> start at all... will such disks work with AIX?

All of the SCSI disks that we have experience with (i.e. IBM Japan 160MB, IBM
Havant 857MB, IBM Rochester 320MB, 400MB, 1 GB, MAXTOR 355MB, 670MB, Seagate 1GB,
...and I'm sure there are others) basically no-op a SCSI Start-Unit if the disk
is already spun-up.

If a disk will not allow a Start-Unit when already spun-up, then the answer
is NO, it won't work with AIX.  The SCSI disk driver issues a Start-Unit command
on the first open() to the disk.  Basically I guess the assumption that the AIX
SCSI Driver makes is that a)the disk may be spun down and b)if it isn't the 
Start-Unit command will be a no-op, not an error.

> 
> How does one learn to translate those sense codes, BTW?

There may be a more elegant way available, but here is what I do:

The sense data for a SCSI device maps to the struct sc_error_log_df found
in /usr/include/sys/scsi.h, minus the first to fields of the structure.  In other
words, the sense data starts with the struct scsi scsi_command field of the
sc_error_log_df structure.  Then look at struct scsi (also in scsi.h) and
from there you can determine what bytes make up the actual command.


-- 
_____________________________________________________________________________

Randy Swanberg                                            swan@austin.ibm.com
AIX Kernel Development                                    512-838-3363
Newsgroups: comp.unix.aix
From: tye@spillman.uucp (E. Tye McQueen)
Subject: Re: last command?
Date: Thu, 07 Jan 1993 21:03:17 GMT
Organization: Spillman Data Systems

fsfrick@lerc.nasa.gov (David Fricker) writes:
)In <9301060106.AA10395@>, jhidalgo@ecnet.ec (Javier Hidalgo E.) writes:
)> Hi folks, please if someone know a command similary to last
)> command for read from tacacs.wtmp and failedlogin files, because
)> last only read of wtmp, and information is good.
)
)Try 'who <filename>'.  'who' accepts (as an argument) a file to look
)at instead of the default /etc/utmp.  You may want some way to
)reverse the order to look more like 'last', though.
)
)Of course, 'who' doesn't give you all the info that 'last' does, but
)it is a start.

Here is a Perl script that reads "utmp" records.  It hasn't been
prettied up.  Currently you pass it a single argument which is the
username whos login/outs you want to see.

If you are familiar with Perl this is easy to change to show just
about anything you want.

Just change the "64"s and the unpack string to port to a different
machine.  Yes, it's very quick and very dirty.

----- Delete this line and above -----
#!/usr/bin/perl
# Dumps contents of /usr/adm/wtmp in human-readable format

eval 'exec perl -S $0 ${1+"$@"}'
	if 0;# not already running under PERL;

# /etc/utmp
open( WTMP, "</usr/adm/wtmp" )
 ||  die "Can't read /usr/adm/wtmp: $!\n";

@type= split(' ',"MT RLVL BOOT TIME INIT LOGIN USER DEAD ACCT");

$oinit= "None";

while(  64 == sysread( WTMP, $rec, 64 )  ) {
	( $user, $init, $line, $type, $pid, $terminate, $exit, $time, $host )=
	  unpack( "A8A14A12slssLA16", $rec );
	if(  $ARGV[0] eq $user  ||  "" ne $oinit  &&  $init eq $oinit  ) {
		print $init ? "Init=$init" : "", $user ? " User=$user" : "",
		  $line ? " Line=$line" : "", $pid ? " PID=$pid" : "",
		  " Type=", $type, $type[$type] ? ":$type[$type]" : "",
		  $terminate ? " End=$terminate" : "",
		  $exit ? " Exit=$exit" : "", " Time=",
		  sprintf("%02.2d:%02.2d:%02.2d %02.2d/%02.2d/%d",
			(localtime($time))[2,1,0,4,3,5]),
		  $host ? " Host=$host" : "", "\n";
		$oinit= ( $ARGV[0] eq $user ) ? $init : "";
	}
}
# Line values: "run-level_" "system boot" "old time" "new time"
----- Delete this line and below -----
Newsgroups: comp.unix.aix
From: "harry tempelman" <harry.tempelman@canrem.com>
Subject: c menu program (#2)
Reply-To: "harry tempelman" <harry.tempelman@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 5 Jan 93 13:10:17 EST

(Continued from the previous message)

       printf("\t\t\t(F)  Read Ford Standard 9 track tape\n");
       printf("\t\t\t(R)  Return to Main Menu\n");
       printf("\t\t\t(Q)  Quit\n");

       printf("\n\t\t\t     Choice: ");
    }
}

/****************************************************************************/
/* rmtread                                                                  */
/****************************************************************************/
void rmt1read()
{
    char answer;
    {
       rmt1read_menu();
       answer = getchar();
       answer = tolower(answer);
       switch (answer)
          {
              case 'c' : {
                         char *pc;
                         printf("\nEnter file to read: ");
                         scanf("%s",pc);
                         pc = (char *)malloc(10 * sizeof(char));
          pc = strcpy("dd if=/dev/rmt1.1 if=/tmp/",pc,"ibs=1600 conv=sync");
                         system(pc);
                         }
          rmt1read();
          case 'f' : system("ls /tmp"); rmt1read();
          case 'r' : start();
          case 'q' : exit(1);
          default  : rmt1read();
 }
    }
}



Any response is appreciated.....

Harry Tempelman
APEX METALS INC.

 APEX METALS INC.   .   .   .   .    __|__    .   . harry.tempelman@canrem.com
.   .   .   .   .   .   .   . --o--o--(_)--o--o-- .   .   .   .   .   .   .   .
---
  DeLuxe 1.20 #11534  REALITY.SYS Corrupted: Reboot universe? [Y/N]
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
Newsgroups: comp.unix.aix
From: smmyers@foghorn.srv.pacbell.com (Sean Myers)
Subject: Changing Double-Click Speed
Organization: Pacific Bell OSSEM
Date: Tue, 5 Jan 1993 21:58:12 GMT


Does anyone know of a way to change the mouse double-clicking speed on a RS6K ?

I've been through info explorer and haven't found anything.  A program perhaps ?

Thanks-
From: howardd@yvax.byu.edu
Newsgroups: comp.unix.aix
Subject: Adding SCSI OSDISK
Date: 6 Jan 93 10:51:19 -0700
Organization: Brigham Young University


I have added a Hitachi 515C drive that was taken off a VAX VMs system to our
RS6000.  When I try and format it the it tells me that the format stopped and
suggests I run diagnostics.  Diagnostics says that the drives seems to be okay
and ask if I want to certify and I have told it yes.  It then goes ahead and
certifies the drive. I then get back the following.
TESTING SCSI DISK DRIVE hdisk3 IN LOCATION 00-08-00-30                   
721015
 
Fixed Disk Capacity.................... 670 MB
Data Errors Recovered.................. 0
Data Errors Not Recovered.............. 0
Equipment Check Errors Recovered....... 0
Equipment Check Errors Not Recovered... 0
 
 
 
 
To continue, press Enter.

A PROBLEM WAS DETECTED ON Mon Jan  4 15:20:09 MST 1993                   
801014
 
The Service Request Number or Numbers:
  721-128:  Error log analysis indicates a hardware failure.
 
Probable Cause or Causes:
- 100%  hdisk3            00-08-00-30       Other SCSI Disk Drive
 
To continue, press Enter.

The error log shows the following on detailed.

ERROR LABEL:    DISK_ERR2
ERROR ID:       A668F553
 
Date/Time:       Mon Jan  4 10:41:10
Sequence Number: 99035
Machine Id:      000015351C00
Node Id:         ucs2
Error Class:     H
Error Type:      PERM
Resource Name:   hdisk3
Resource Class:  disk
Resource Type:   osdisk
Location:        00-08-00-30
VPD:
        Device Specific.(Z0)........0000
        Manufacturer................HITACHI
        Machine Type and Model......DK51-5C
 
Error Description
DISK OPERATION ERROR
 
Probable Causes
DASD DEVICE
Failure Causes
DISK DRIVE
DISK DRIVE ELECTRONICS
 
        Recommended Actions
        PERFORM PROBLEM DETERMINATION PROCEDURES
 
Detail Data
SENSE DATA
0603 0000 1B00 0000 0100 0000 0000 0000 0102 0000 7000 0500 0000 000E 0000 0000
2000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000

Anybody have an idea about what I can do to get the disk to work on the RS6000?

David Howard
Brigham Young University
403 B CB
dlh@byu.edu
(801)378-7390

Newsgroups: comp.unix.aix
From: curt@ekhadafi.austin.ibm.com (Curt Finch 903 2F021 curt@aixwiz.austin.ibm.com 512-838-2806)
Subject: Re: Print queue control characters
Date: Thu, 7 Jan 1993 16:51:13 GMT
Organization: IBM AWD, Austin

In article <1993Jan6.220415.1@stc10.ctd.ornl.gov> jgc@stc10.ctd.ornl.gov (Jack Craven) writes:
>How do you setup several print queues for a single printer with each
>queue inserting control characters in front of each print request
>to switch the printer into the desired mode of operation? Is it
>documenated anywhere?
>
>jgc@stc10.ctd.ornl.gov


Say 'hi' to Phil Jardine for me, (who works with you.)

You can write your own queueing backend, see "How to Write Your Own
Queueing System Backend" in Info.

In /etc/qconfig, each stanza has a 'backend=' line.  You can make this
backend be an executable shell script or C program of your choice which
does anything you wish to the input program, (whose name is the 1st arg
on the command line,) and writes it to device, (which is on FD3,) or
execs the standard backend 'piobe' from there.

There's nothing wrong with having several different queues point to one
device.

-- 
curt@aixwiz.austin.ibm.com (Curt L. Finch) | AIX NFS/NIS Field Quality 
My views are unrelated to my employer's    |        Austin, TX
 - Begin means testing of Social Security, Medicare and Farm Subsidies now. -
From: bell@hops.larc.nasa.gov (John Bell)
Newsgroups: comp.unix.aix
Subject: lpr and qdaemon interaction question
Date: 4 Jan 1993 20:49:58 GMT
Organization: NASA Langley Research Center
Distribution: world
NNTP-Posting-Host: hops.larc.nasa.gov

OK, I tried InfoDestructor(tm) and just ran out of luck. My problem is this:

  Remote user queues a print job to an AIX queue which is handled on the AIX
end by lpd. lpd places the print job on the queue and everything is OK. BUT,
the queue then processes the job (using enscript) and requeues is to another
queue which actually prints the job to yet another remote printer. (Don't
even ask why this kludgy approach is needed). Since the actual file that
enscript uses is a temp file, the file name which appears on the headers is
is the name of the temp file, instead of the name of the original remote file.
Now, I know that the name of the file is contained in a status file in 
/usr/spool/lpd/... and that I could get it by reading the file, but I'm lazy.
When lpd calls enq to queue the job, enscript gets the following arguments:
   -Hhostname filename
where filename is the temp file name and hostname is the remote system.
Is there a way to make lpd include the remote filename or any of the other
information that the remote system's lpr passed to lpd?

Thanks in advance!

-----
John Bell
NASA Langley Research Center
bell@hops.larc.nasa.gov
From: moran@vnet.ibm.com
Date: Mon, 11 Jan 93 09:39:03 CST
Subject:  Sun like linking....Anyone still interested?
          Sun like linking...Anyone still interested?
Newsgroups: comp.unix.aix

Not too long ago, there was a fairly long thread on Sun like linking, which
brings up the question -- does anyone still desire that type of linking
functionality under AIX?

Mike Moran
moran@vnet.ibm.com
From: rr2b+@andrew.cmu.edu (Robert Andrew Ryan)
Newsgroups: comp.unix.aix
Subject: Re: static data no in the symbol table?
Date: 7 Jan 93 15:36:09 GMT
Article-I.D.: andrew.MfHBe9S00WoiBHfExe
	<19930107.062513.949@almaden.ibm.com>
Organization: School of Computer Science, Carnegie Mellon, Pittsburgh, PA

Excerpts from netnews.comp.unix.aix: 7-Jan-93 Re: static data no in the
s.. Matthew T. Russotto@vnet (750)


> In <sfGpsXC00WoiFTzn8g@andrew.cmu.edu> Robert Andrew Ryan writes:
> >It appears that under some circumstances xlc fails to output symbols for
> >static data.  For example, compiling:

Apparently the behavior I was relying on is less common than I believed.
The OS supplied compilers on a decstation, a sparc, and an IBM RT
include symbols for the static data symbols.  The OS supplied compilers
with AIX, and HP-UX don't, nor does gcc (at least on a decstation.)

Moral....  Never try to do anything not covered by a standard :-(

Thanks for the info,

-Rob