HDTenEightyP/NetNews huggingface dataset:
From: dbsuthe@pbhya.PacBell.COM (Daniel B. Suthers)
Subject: Re: Pls help: Misc questions
Reply-To: dbsuthe@PacBell.COM (Daniel B. Suthers)
Organization: Pacific * Bell, San Ramon, CA
Date: Fri, 14 Aug 1992 21:27:35 GMT

In article <1992Aug14.180857.3791@alchemy.chem.utoronto.ca> system@alchemy.chem.utoronto.ca (System Admin (Mike Peterson)) writes:
>In article <1992Aug14.100417.23395@hp9000.csc.cuhk.hk> a866700@hp9000.csc.cuhk.hk (Wong Siu To) writes:
>>
>>I also want to know how can I determine whether a process (say, "sh") is
>>a background job or an interactive one.  I submit jobs to a batch queue


In SysV, it's 

if [ -t 0 ] ; then
    echo "Yup, file descriptor zero is associated with a terminal." >&2
    echo "It's interactive." >&2
else
    echo "Nope, this program's running in the background, from cron, etc." >&2
fi


This works well for any program that needs to prompt for information.  The idea
is to check before prompting.



Daniel B. Suthers,  CCP.
Technology Consultant, PCS & IN Development Lab,        Pac*Bell
Voice: (510) 671-1325               UUCP:  pacbell!pbeos!dbsuthe
================================================================================
=  Commit unexpected kindness and senseless acts of beauty.                    =
================================================================================
Newsgroups: comp.sys.hp
From: scott@sae.com (Scott Mansfield)
Subject: Installing HP9000/710
Reply-To: scott@sae.com
Organization: Template Software
Date: Thu, 13 Aug 1992 12:15:42 GMT

Hello,
   I was just delivered an HP710 that doesn't have the OS installed.  My only
cd-rom drive is on another HP 7xx.  Is there a why to boot this sucker over
the net?  Any help is greatly appreciated.

thanks,
-scott.

---
________________________________________________________________________________
      Scott A. Mansfield                Template Software
      (703) 318-1000                    13100 Worldgate Drive, Suite 340
      uunet!sae!scott                   Herndon, VA 22070-4382
      scott@sae.com                     Fax: (703) 318-7378
________________________________________________________________________________

From: marca@hpcvlx.cv.hp.com (Marc F. Ayotte)
Date: Fri, 21 Aug 1992 22:58:56 GMT
Subject: Re: Odd Hang Symptoms (HP)
Organization: Hewlett-Packard Co., Corvallis, OR, USA
Newsgroups: comp.sys.hp

Symptoms such as you mention can occur in 8.0 and beyond if you nfs
mount a directory on your machine to another directory on your machine.
If you then do a large write over the nfs mount, the system will hang.
The work-around: don't self mount nfs directories.

This will be supposedly fixed in the 9.* time frame.

Marc Ayotte
From: mobej@thaad-1g%hac2arpa.hac.com (Mario Obejas)
Newsgroups: comp.sys.hp
Subject: Re: diff to return a value in a shell script?
Date: 18 Aug 92 00:03:37 GMT
X-Newsreader: Tin 1.1 PL4

kc@netcom.com (Dameon D. Welch) writes:
: I'm writing a shell script under HP/UX 8.07 that will preform its task
: if and only if any changes were made to the file. I need to have diff
: somehow return only an integer value or some other method of determining
: an error, no differences, or that there are diffs. I've read the man
: page on diff and it does not specify an option to get what I want.
: 
: Any ideas?

I know the following works for ascii files, not sure about binary but it should
work. ASCII was tested before posting.

#!/bin/csh
#
# $1 and $2 are the name of the two files being compared
#
set lines_changed=`diff $1 $2 | wc -l`
echo "lines changed =($lines_changed)"
if ( $lines_changed > '0' ) then
   echo "$1 and $2 are different "
endif


Do I get a chocolate chip cookie for this?

--
Mario Obejas    mobej@thaad-1g.hac.com    (714) 732 2954
                mobej@thaad-1g@hac2arpa.hac.com   if the above doesn't work
Hughes Ground Systems Group, P.O. Box 3310, Fullerton, CA 92634
ex-THAAD sysadmin: will work for food or Internet address
Disclaimer: my opinions are mine, not necessarily my employer's.
Newsgroups: comp.sys.hp
From: jwright@cfht.hawaii.edu (Jim Wright)
Subject: Re: Xlib bugs in HP-UX 8.07
Organization: University of Hawaii
Date: Sun, 16 Aug 1992 19:10:29 GMT

lecom@slhp1.epfl.ch (Claude Lecommandeur) writes:
>freeman@saul.cis.upenn.edu (Jon Freeman) writes:
>|> 1.  For the life of me, I cannot figure out how to add a new font
>|> directory to a server's font path using XSetFontPath() (or
>|> equivalently, 'xset +fp' or 'xset fp+').

>    It seems that you can add directories only in {your_X11_path}/lib/fonts,
>i don't know why, but it works for me for these kind of directories.

There is no such restriction on adding font paths.  I would guess the problem
you are having is because the directory is not mounted.  Remember, fonts are
a server resource, not a client's.  So if the fonts are on a remote machine's
disk, you must nfs mount them.

--
Jim Wright
jwright@cfht.hawaii.edu
Canada-France-Hawaii Telescope Corp.
Newsgroups: comp.sys.hp
From: misch@rbhp90.rbg.informatik.th-darmstadt.de (Clemens Misch)
Subject: Re: HP 9000/370, no root password!
Date: Wed, 19 Aug 1992 19:49:14 GMT
Reply-To: misch@rbhp90.rbg.informatik.th-darmstadt.de
Organization: Rechnerbetriebsgruppe FB20; TH Darmstadt (Germany)


In article <1992Aug19.152522.2758@gdwest.gd.com>, good@gdwest.gd.com (David L. Good) writes:
> In article <1992Aug18.064054.8484@nessie.mcc.ac.uk> LeBlanc@mcc.ac.uk writes:
[ ... ]
> >I've never done this with a 370, but on 340's you can easily
> >interrupt the boot sequence while fsck is being performed and
> >get root privileges.  An fsck will be performed if the system is
> >switched off without using reboot or shutdown: do a sync first,
> >if you can, to minimise damage.
> >
> >Once you have root privileges, you can edit /etc/passwd and reboot.
> >
> 
> That's certainly an interesting "feature".  Is there any way to prevent 
> this from occuring?  We have a network of ~60 350s, and I'd hate to have 
> users be able to be superuser anytime they want just by cycling power on 
> a workstation!

We inserted following line in all /etc/*rc scripts right after
'#!/bin/sh':

trap "" 1 2 3 5 9 15

This should help a lot. I don't know if it is safe. One can possibly
catch the short timespan between fork and the execution of "trap", but
this is a very small window.

Some other interesting "feature" of the bootrom (this is of concern
only if you have a floppy drive connected to your machines):

Any time the bootrom reports 'HIL Keyboard' you can type SPACE and
then a 'System selection' Menu will be displayed. If you have a valid
HPUX floppy in the drive, you can boot the machine from floppy.
If your users have write access to the floppy-drive, then it is very
easy even for a semi-competent usere to create a bootable HPUX floppy.

Of course this system runs in single user mode and has root
priviledge :-(

It is possible to remove the HP-IB devices from the system searchlist
of the bootrom, but of course this can be undone if one knows.

I'd like to see a sort of password in the bootrom.

I think this should be done ASAP. HPUX may be certified C2 but the
system consisting of bootrom and HPUX is certainly not (IMO)

--
===============================================================================
Clemens Misch                                        Rechnerbetriebsgruppe FB20
                                                     Merckstrasse 25 
EMail: misch@rbhp90.rbg.informatik.th-darmstadt.de   W6100 Darmstadt (Germany)
Tel.: +49 6151 163514
===============================================================================
Newsgroups: comp.sys.hp
From: gary@uniwa.uwa.edu.au (Gary Carroll)
Subject: Porting sudo 1.2 to HP-UX problems
Organization: University of Western Australia
Date: Wed, 19 Aug 1992 03:54:30 GMT

Help!

I am trying make sudo (v1.2) work on a HP 9000/380 running HP-UX 8.0.

Trying to make the program revealed the following problems:
* setruid, which was converted to use setresuid.
* getwd, which was converted to use getcwd.
* getdtablesize which has no HP equivalent call but source was found in
 this newsgroup.

The program now makes happilly, however sudo just lets authorized users
access programs WITHOUT them having to enter their password.
Unauthorized users are denied access as expected.

Any ideas? Before I get too carried away working out why it doesn't
work as expected, has anyone else ported sudo to HP-UX?

Regards,

Gary
------------------------------------------------------------------------------
Gary Carroll: Consulting and Programming Services    Phone: (09) 380 3203
              Winthrop Technology                    Fax  : (09) 382 1688
              University of Western Australia        gary@uniwa.uwa.edu.au
              Nedlands 6009 AUSTRALIA                Packet Radio: VK6XQ@VK6KS
------------------------------------------------------------------------------
From: paul@lily.aerc.colostate.edu (Paul Williams)
Newsgroups: comp.sys.hp
Subject: PC-NFS now works
Date: 14 Aug 92 21:44:11 GMT
Distribution: usa
Organization: USDA-ARS-WMU, Ft. Collins, Colorado

We have an HP 720 with 8.07 and have been having problems
getting pc-nfs on pc's to mount the resources of the hp
(it worked fine on a Sun 3/50).

Earlier this week HP discovered the problem.  The security mechanism is
flaky.  They recommended moving

	/usr/adm/inetd.sec

to some other name to disable the security check.

When I moved the file to a new name I was able to mount the HP's disks
and printers from the pc.

It appears to be working fine now.

I hope this doesn't cause any other problems. 

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
Paul F. Williams             |
paul@lily.aerc.colostate.edu |
(303)491-8277                |
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+



-- 
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
Paul F. Williams             |
paul@lily.aerc.colostate.edu |
(303)491-8277                |
Newsgroups: comp.sys.hp
From: harry@cv.hp.com (Harry Phinney)
Subject: Re: nifty things from Domain/OS
Organization: Hewlett-Packard Company, Corvallis, Oregon USA
X-Newsreader: Tin 1.1 PL4
Date: Mon, 17 Aug 1992 18:56:18 GMT

wonga@chem.su.oz.au () writes:
: It seems odd that "vuepad" is
: a very HP-UX thing yet it appears on the Apollos.
: 
: I wondered if any of this was planned for HP-UX and the 700 series.

Vuepad was a late addition to HP-VUE 2.01.  It was included in the Domain
10.4 release, and was also included in the HP-UX 8.07 release on the
series 700 machines.

Harry Phinney   harry@hp-pcd.cv.hp.com
From: cary@hpcuhe.cup.hp.com (Cary Coutant)
Newsgroups: comp.sys.hp
Subject: Re: Help for my binary read !!!
Date: 13 Aug 92 17:58:54 GMT
Organization: Hewlett Packard, Cupertino

> Dear netters:
>    I have the following c-code which reads in a binary file
>    generated by Fortran program write: write(10) n1,n2,n3,n4
>    (Here, n1=40,n2=60, n3=17, n4=1)

When Fortran does unformatted I/O, it puts a record length at the
beginning and end of each record.  You're writing 16 bytes (four
words), so the file should contain six words:

	16
	40
	60
	17
	1
	16

Cary Coutant
Hewlett-Packard
California Language Lab
Newsgroups: comp.sys.hp
From: alek@spatial.com (Alek O. Komarnitsky)
Subject: Re: REMSH -- RSH
Originator: alek@spatial
Organization: Spatial Technology, Inc. (Boulder, Colorado)
Date: Wed, 12 Aug 1992 03:34:32 GMT

In article <7371221@hpfcso.FC.HP.COM> rodean@hpfcso.FC.HP.COM (Bruce Rodean) writes:
>rsh under UNIX machines (like sun) doesn't mean the same like rsh under HP-UX.
>rsh (UNIX) == remsh (HP-UX).
>I'like to link rsh to remsh in order to make rsh means the same under all 
>machines we have. does anybody already try this? is it dangerous to do this?

Here's part of my list of things I do to "localize" a vanilla HP system
   mv /bin/rsh /bin/ressh
   ln /usr/bin/remsh /usr/bin/rsh

BTW, I also do a  mv /usr/lib/cron; rm cron.allow at.allow  
which one should *not* have to do IMHO!  ;-)

I've been doing this on HP-UX7.0-8.07 and HP{3,4,7}00's and we have never
seen any ill effects. Unless you plan to use the Restricted Shell, this is
probably the way to go IMHO.  BTW, there's been discussion before on c.s.h
about rsh/remsh "correctness" 

Alek Komarnitsky                                      303-449-0649
Software Tools Manager, Spatial Technology, Inc.      2425 55th Street, Bldg A
alek@spatial.com                                      Boulder, CO 80301-5704


P.S. Anybody out there using file system swap on their HP700's w/HP-UX8.07?
Even with the "VM patch" installed (PHKL_1065), there still seems to be
some strangeness. I've enabled this on a few machines as a "safety net,"
VUE (and our product) can be memory pigs at times. However, sometimes
it seems that we encounter about 5 minutes of pure swapping, load factor
of 20+, and a hyper-active disk (lots of squirrels in there eating nuts! :-)
Things then seem to return to normal ?!?
From: hardouin@cismhp.univ-lyon1.fr (Jerome Hardouin)
Newsgroups: comp.sys.hp
Subject: Problem with Architect List swidget
Date: 12 Aug 1992 14:13:24 GMT
Organization: Universite Claude Bernard. Lyon (France)
Distribution: world
NNTP-Posting-Host: cismhp.univ-lyon1.fr


	Hi !

I'm writing a soft using Architect, and I've created a 'list' shadow widget.
The selection policy is 'browse_select' and I have to write two different
callbacks : one for the simple clic and one for the double clic ..

I've put my code in the properties table :
	- the one corresponding to the simple clic in the "BrowseSelectionCall
	  back"
	- the one corresponding to the double clic in the "DefaultActionCallba
	  ck"

The problem I have is that when I double clic an item , the TWO callbacks are
called , the "BrowseSelection" first and then the "DefaultAction" .

Is there a way to have only the "DefaultActionCallback" called when I double 
clic an item ? Or any other way to have two separate callbacks for the simple 
and double clic ?

Thanks in advance !

-- 
	Jerome Hardouin    INSA Lyon , Departement d'Informatique - FRANCE
	Email : 	   <Jerome.Hardouin@univ-lyon1.fr>
Newsgroups: comp.sys.hp,comp.windows.x
From: alek@spatial.com (Alek O. Komarnitsky)
Subject: Re: X-Terminals logging into HP-UX
Organization: Spatial Technology, Inc. (Boulder, Colorado)
Date: Thu, 13 Aug 1992 23:55:30 GMT

In article <Bsupyo.B6y@waterloo.hp.com> hart@waterloo.hp.com (Tony Hart) writes:
>kburrell@hns.com (Ken Burrell A-317) writes:
>: 
>: The question I have, does anyone have experience circumventing the HP VUE startup so that I get only the XDM equivalent portion controlling my X session?
>: I have been experimenting with the /usr/lib/X11/vue/Vuelogin/Xsession file with mixed results at best. Any help would be appreciated. We are running HP-UX 8.07 with NCD 19c X-terminals.
>
>From the "HP System Administrator's Guide for the HP 700/RX":
>
>    To direct HP VUE to run an xdm .xsession script, use an editor to open the
>    file /usr/lib/X11/vue/Vuelogin/Xsession and put one of the following sets
>    of lines just before the section of code that reads
>
>    For example, to run the xdm .xsession script on an X station called xterm1,
>    use 
>
>    case $DISPLAY in
>    xterm1:0.0) startup=/usr/lib/X11/xdm/sys.xsession;;
>    esac

Tony - have you ever tried this? [trick question!  ;-) ]

At least for us (HP710's w/HP-uX8.07 and B.03.00 X-server tape), the above
did not work - I had to leave the  .0  off - i.e. 
       xterm1:0) startup=/usr/lib/X11/xdm/sys.xsession;;

I tracked this down through the maze of startup files that are invoked;
but can't remember how I figured it out. Despite this minor error, let
me say that the overall documentation and setup of the HP X-terms is great!

Also, has enyone noticed that the initial clock (when running xdm) comes
up in Eastern time. I believe this is because /etc/src/src.{c}sh is not
executed, and so the time zone is not set. I got around this by adding
a TZ=MST7MDT; export TZ  in /usr/lib/X11/xdm/sys.xsession  near the top.

Happy users of HP X-terminals,

Alek Komarnitsky                                      303-449-0649
Software Tools Manager, Spatial Technology, Inc.      2425 55th Street, Bldg A
alek@spatial.com                                      Boulder, CO 80301-5704

P.S. Tony: Can you give us any hints when local window manager/client
     capability will be added to the 700/RX's?
Newsgroups: comp.sys.hp
From: demon@sequent.com (Dave Richards)
Subject: Re: HP Vectra Disk Drives
Organization: Sequent Computer Systems Inc.
Date: Thu, 13 Aug 92 18:59:51 GMT


I have the same question.  When I called HP, however, they said that the
RS 20 did not support SCSI, something about support being added after the
RS 20 was discontinued.  I'm sort of stuck right now because I wanted to
add a Micropolis 1.2Gb drive to an RS 20, but setup won't let me configure
a drive that big.  Is there anything I can do about that, like
circumventing setup or somehing?  I'm not sure I'd ask if HP sold a 1.2Gb
drive.  Yes I am, I forgot that HP is selling disk drives at car prices,
(good thing they're not selling cars, couldn't afford another mortgage).

	Dave Richards
Newsgroups: comp.sys.hp
From: liedes@ntc02.tele.nokia.fi
Subject:  Q: Network printing?
Organization: Nokia Telecommunications.
Date: Thu, 20 Aug 1992 14:35:45 GMT



	Hi there Gurus!


I  have a problem with printing. We have HP 9000/720 and at the moment
we are using Remote print via our VAX. Printing queues are set up
by SAM. It was very easy. 
Printers are connected via Bridge (3Com) terminal servers to VAX.

I still want print without remote VAX via Bridge network to same
printers as VAX prints. 
What to do? By software? What software? Or is there any possibilities
to do this without commercial software? Has anyone some scripts to do this?

If you have some idea of this, let me know.


Reg Seppo Liedes 

inet: liedes@ntc02.tele.nokia.fi
 


Newsgroups: comp.sys.hp
From: misch@rbhp90.rbg.informatik.th-darmstadt.de (Clemens Misch)
Subject: Re: Recovering from disk with bad blocks
Date: Wed, 19 Aug 1992 13:30:00 GMT
Reply-To: misch@rbhp90.rbg.informatik.th-darmstadt.de
Organization: Rechnerbetriebsgruppe FB20; TH Darmstadt (Germany)


In article <Bt6ryz.Iq2@knot.ccs.queensu.ca>, heisz@sparky.uucp (Jeff Heisz) writes:
> "What to do when you get this error" the notes for fsck say that if 
> the error is 
> 
> CANNOT READ BLCK ##:
> 
> the diagnositc is:  this never happens.  if it does consult a guru.
> 
> The information on this disk is precious to the nth degree.  It is not
> backuped (of course, else why would I ask you this). Any ideas on
> recovering the info?  It is the SCSI disk for one of HPs and so the 
> OS is HP-UX.

In general, you can't recover these block with *standard* HPUX tools.
But if you ar willing to learn a bit about SCSI Commands, and with a
little C-programming you might get some data.
Almost every SCSI Disk supports the READ LONG command. This transfers
a single Block with ECC Bytes.

Under HPUX you can send arbitray SCSI Commands with a program like
this. You have to be uid 0 to do this.

#include <sys/scsi.h>

....
int on = 1;
int device;

struct scsi_cmd_parms command_block;
char buffer[2048];	/* or somet appropriate structure */
union sense_data sense_buffer;
...
	device = open("/dev/rdsk/0s0",O_RDWR); /* 

...
	ioctl(device,SIOC_CMD_MODE, &on);
...
	command_block.cmd_type = /* length of SCSI command 6,10,12 */
	command_block.cmd_mode = 1 or 0; /* With ATN or without */
	command_block.clock_ticks = /* timeout in 20 ms ticks */
	command_block.command[i] = /* Your SCSI Command goes here */

	ioctl(device,SIOC_SET_CMD, &command_block);

	if (read(device, buffer, /*Blocklength to transfer */) == -1 ) {
		ioctl(device, SIOC_XSENSE, sense_buffer);
	}
/* if your SCSI command expects some additional data then use
   a write (instead of read) with this data */

.....

Something like this appeard sometime ago in this newsgroup. It works
fine for me.

I hope this will help you.


--
===============================================================================
Clemens Misch                                        Rechnerbetriebsgruppe FB20
                                                     Merckstrasse 25 
EMail: misch@rbhp90.rbg.informatik.th-darmstadt.de   W6100 Darmstadt (Germany)
Tel.: +49 6151 163514
===============================================================================
From: jim@tiamat.fsc.com ( IT Manager)
Newsgroups: comp.sys.hp
Subject: Re: 9.0 is coming, are you ready?
Keywords: partitions 700
Date: 13 Aug 92 18:53:07 GMT
Organization: Ahlstrom Filtration - Chattanooga,TN

In article <1992Aug5.074914.19745@resonex.com>, michael@resonex.com (Michael Bryan) writes:
> In article <36502@sdcc12.ucsd.edu> xm9@sdcc12.ucsd.edu (richard g. adair) writes:
> >That's odd.  My 730 with a dual striped disk can have up to 8
> >partitions of arbitrary size.  Works great!
> 
> My understanding is that partitioning can only be done with striped disks.
> So if you're lucky enough to have such a setup, you can do partitioning.
> Otherwise, you're thoroughly hosed...

Is this "disk striping and partitioning" technology currently available
in an HP-UX version for the 800's (specifically 832 and 835)?

Thanks.



------------- 
James B. O'Connor                                     jim@tiamat.fsc.com
Information Technology Manager                        voice 615/821-4022 x651
Ahlstrom Filtration, Inc.                             fax   615/821-0616
Organisation: European Space Technology Centre (E.S.T.E.C)
Date: Thursday, 20 Aug 1992 09:24:54 CET
From: <BHENDEL@ESTEC.BITNET>
Newsgroups: comp.sys.hp
Subject: Re: Infotek AM320 & HP 9000/310

Addresses of INFOTEK SYSTEMS:

1045 S. East Street
Anaheim, CA 92805-8508
(714) 956-9300, (800) 227-0218
in California (800) 523-1682
TELEX 678870

European General Office:

INFAX COMPUTER PRODUCTS GmbH
Eschborner Landstr. 42-50
6000 Frankfurt/Main 90
West Germany
(069) 789 30-21 (or 22,23,24)
TELEX 4170718
From: ajv@xhost92.csd.mot.com
Newsgroups: comp.sys.hp
Subject: Re: pstat () system call (and other goodies)
Date: 17 Aug 92 20:03:46 GMT

gritton@alaska.et.byu.edu (Jamie Gritton) writes:

>   I found this by accident too. After looking in sys/pstat.h, I
>played around with it and found out how to make it work. It's really
>quite useful, and much more elegant then poking around in /dev/kmem.
>Plus non-root users can get the info too.

Why, thank you! :-)

This interface was first conceived by a fellow employee who was
working on a customer complaint that ps was too slow.  He defined
the interface, and handed it off to my group.  We worked on the
interface to make it more generic and extensible, and then a
fellow worker took a partial rewrite of ps I had done and filled
out the rest of the missing functions.

We considered the possibility of proposing it as a standard, but
our standards "animals" told us that it probably wouldn't fly.
The interface seems generic, but it is a generic to *UNIX*.  Some
people on these committees take exception to the concept of UNIX,
and shoot down anything which leans in that direction.  Things like
"working set" or "virtual size" (assumes VM) push their buttons.
There were some other fields which were problematic also.  I'd have
to take another look at someone's copy of pstat.h to name them.

					Andy Valencia
					ajv@csd.mot.com (for now)
					jtk@netcom.com (if it bounces)
Newsgroups: comp.sys.hp