HDTenEightyP/NetNews huggingface dataset:
From: alexis@panix.com (Alexis Rosen)
Subject: Re: Trying to make A/UX know about a gateway/router. Help!
Date: Tue, 7 Apr 1992 02:22:31 GMT
Organization: PANIX Public Access Unix, NYC

chgarnett@amherst.edu writes:
>OK, I messed up. I somehow killed my A/UX system, and I've had to reinstall
>from scratch. As if feeding the floppies to the Mac wasn't bad enough, now
>I can't remember what I have to do to convince A/UX reach the world off
>our campus, on the other side of the Cisco router. I know that there's
>a file I'm supposed to put the address of this router in, but I don't
>remember which one/where it is. Can anybody help?

Put "/usr/etc/route add default <cisco's numeric IP address> 1" at the end of
/etc/rc.

You can also put the cisco's name and IP in /etc/hosts, and then refer to the
cisco by name in the /etc/rc.

---
Alexis Rosen
Owner/Sysadmin, PANIX Public Access Unix, NYC.
alexis@panix.com
{cmcl2,apple}!panix!alexis
Newsgroups: comp.unix.aux
From: alexis@panix.com (Alexis Rosen)
Subject: Re: A/UX machine acting as a name server help?
Date: Thu, 16 Apr 1992 10:55:29 GMT
Organization: PANIX Public Access Unix, NYC

In <1992Apr14.110924.1@amherst.edu> chgarnett@amherst.edu writes:

>In an effort to make sure that my A/UX machine survives my departure, 
>I'm trying to find some task for it that will make it indispensable.
>It turns out that we need a secondary name server here at our site,
>so that if our primary machine craps out, someone else will pipe up and
>say "I know where foo.bar.ustate.edu is!" This machine also should be
>completely independent of our main system, a DEC VAX, as well. Sounds
>like a PERFECT use for a little AUX machine sitting in a corner, doesn't
>it? :)

No. But it'll do.

>The problem is this: I have absolutely NO idea how I'd set up my system
>to be a real honest-to-god name server. It's not a question of having
>some huge equivalency table someplace the way BITnet does routing...the
>VAX gets its information from a couple of known and trusted name servers
>deep inside the Internet. Being a UNIX weakling, I'm not even sure where
>I'd start looking for this in the manuals.

The software is /etc/named. It's got a man page that would confuse RMS if he'd
never seen named before. The files in /etc/bind (BIND = Berkeley Internet
Nameserver Daemon, if I recall correctly) are more useful, and are how I
learned how to set up a name server (though it took a couple of passes through
the various docs for me to feel confident).

You can probably use the named data files from the VAX almost verbatim,
changing only the lines realting to the VAX and the Mac, unless they're on
different subnets (but the changes would still be minor).

BTW, once you've learned how to make it do what you want, don't be afraid to
deviate from the conventions for structuring the various named data files, as
described in the docs- as long as you've got a reason. Also, I'd keep them
all in /usr/local/named as opposed to /etc/whatever (and in fact I do).

The only fly in the ointment is that under A/UX 2.0.x, named will occasionally
die for no particular reason. You can't make it respawn in the inittab, for
some reason which I forget (but which comes down to the fact that it doesn't
work right).

The solution is to run a cron job every five minutes (or more often if the
machine isn't used for anything else). This job is a shell script which just
checks the contents of "ps -ef" for "/etc/named", and if it doesn't find it, it
starts it again.

Given that it would be a backup server and that named only dies a couple of
times a week, I'd feel reasonably comfortable using A/UX in this manner.

BTW, that same cron job is an excellent place to put watchdogs for things like
-inetd (since running inetd from inittab loses big)
-nnmaster (tends to die every few days)
-slip (if you're running it)
-anything else that should be reliable but isn't...

---
Alexis Rosen
Owner/Sysadmin, PANIX Public Access Unix, NYC.
alexis@panix.com
{cmcl2,apple}!panix!alexis
Newsgroups: comp.unix.aux
From: bbg@aber.ac.uk (Bo Gervang)
Newsgroups: comp.unix.aux
Subject: Re: A/UX and the PowerBooks
Date: 15 Apr 92 20:02:59 GMT
Organization: University of Wales, Aberystwyth

In article <625@jagubox.gsfc.nasa.gov> jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes:
>Although I agree that "functionally" there should be no real reason to stop
>A/UX 3.0 from running on the PowerBooks (140 maybe and 170 fer sure) I can
>think of a few things that would make it "difficult":
>
>   1. The RAM and Internal Disk limitations of the PB.
>      The current Max Ram in a PB is 8MB (I think) and I've only seen
>      up to 80MB (internal) available for the PB's. This seems inadequate
>      to run A/UX. Of course you could add another hard disk and that would
>      get around that limitation (8MB RAM should be Okay :) but then you
>      loose that "portable feel" of the PB (If you want to run A/UX on it
>      while on the road, you need to also pack along the external disk and
>      you'll _need_ to be next to an outlet... Ouch!)
>
>      Maybe the "portable" mindset of the PowerBooks is so strong that
>      Apple wants to avoid a situation where a PB _must_ lose that to
>      run.
I think we all would agree that an external HD would spoil the
portability of the PBs - will we see an internal disk of at least
120MB in the VERY near future?
>
>   2. All that "sleep mode" stuff has to be worked. After all, you can't
>      have the hard disk spin down and then up all the time under A/UX.
>      You could always disable all sleep modes, but then you use up
>      battery charge at a nasty rate _unless you're plugged in_ in which
>      case look at #1.
I don't see this to be a problem if sys 7 is included. You can then
work under sys 7 when you are not plugged in (trains, busses, planes, ..)
and under A/UX whenever you are plugged in. At login level sys 7 should
always be default and no A/UX commands should be allowed if you are 
not plugged in.
>
[stuff deleted]
>
>I'd love to see A/UX running on my PB170, but I'm afraid I'll only see it
>(A/UX) when I use the PB170 to log into jagubox...
I hope that will change very soon. I would love to see A/UX on a PB based
on the 68040 or even a more powerful chip - the PowerPC e.g.

Bo
From: elliott@a8.ima.umn.edu (Frank Elliott)
Newsgroups: comp.unix.aux
Subject: Help!
Keywords: Deskwriter C
Date: 6 Apr 92 19:07:39 GMT
Article-I.D.: news2.1992Apr6.190739.12268
Organization: ima

Having just purchased an HP Deskwriter C for my Mac II, I copied
the printer driver and backgroung printing software into my A/UX 2.01
multifinder system folder.  Now my A/UX system hangs on startup.
Is there any way I can get into the A/UX file system by launching
from a floppy so that I can delete the offending files?

Do I have to rebuild my whole system?

Thanks.

-- Frank
From: urlichs@smurf.sub.org (Matthias Urlichs)
Newsgroups: comp.unix.aux
Subject: Re: The PowerBook 140-170 and A/UX 2.+ discussion ...
Date: 14 Apr 92 15:53:21 GMT
Organization: University of Karlsruhe, FRG
NNTP-Posting-Host: smurf.smurf.sub.org

In comp.unix.aux, article <1992Apr6.153745.16006@panix.com>,
  alexis@panix.com (Alexis Rosen) writes:
< 
< I wonder if CMU's MacMach will run on the PB170?

If not, well, you get complete source code with MacMach, so you can
hack it up yourself if you want to. Or someone else will post the patches.

Too bad you still need a UNIX source license for the beast, but
maybe that will change too, sooner or later. Probably later (or
whenever the GNU Hurd server is ready).

-- 
Matthias Urlichs  --  urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de   /(o\
Humboldtstrasse 7 -- 7500 Karlsruhe 1 -- Germany  --  +49-721-9612521     \o)/
Newsgroups: comp.unix.aux
From: mlanett@void.ncsa.uiuc.edu (Mark Lanett)
Subject: Re: MacMach (CMU) cost, etc...
Organization: University of Illinois at Urbana
Distribution: usa
Date: Tue, 7 Apr 1992 09:20:22 GMT

cmenser@isis.cs.du.edu (Charles Menser) writes:

>What does MacMach (from CMU) cost? Is there an educational discount?
>Is it currently available? Who should I contact to purchase it?

Why don't you mail them? macmach@andrew.cmu.edu
-- 
Mark Lanett, Software Tools Group, NCSA           mlanett@uiuc.edu or  NCSA.STG
"People wander in and out of virtual rooms in virtual settings with virtual
characters and virtual money and virtual armor and virtual weapons, which is
virtually a good way to spend time, but not quite." -- Usenet Oracle
-- 
Mark Lanett, Software Tools Group, NCSA           mlanett@uiuc.edu or  NCSA.STG
"People wander in and out of virtual rooms in virtual settings with virtual
characters and virtual money and virtual armor and virtual weapons, which is
virtually a good way to spend time, but not quite." -- Usenet Oracle
From: boyd@prl.dec.com (Boyd Roberts)
Subject: Re: appending a single quote
Organization: Digital Equipment Corporation - Paris Research Laboratory
Date: Fri, 10 Apr 92 21:44:34 GMT

In article <1992Apr9.150947.11988@crc.ac.uk>, gwilliam@crc.ac.uk (Gary Williams x3294) writes:
> 
> I have a workaround. It is horrible, but much of shell programming is :-)
> 

Well, you _are_ using csh.


Boyd Roberts			boyd@prl.dec.com

``When the going gets wierd, the weird turn pro...''
Newsgroups: comp.unix.shell
From: fischer@gmd.de (Mark Sebastian Fischer)
Subject: Re: 2 quick questions...
Reply-To: fischer@gmdzi.gmd.de
Organization: GMD-FIT.KI
Date: Tue, 14 Apr 1992 22:50:35 GMT

Hi!

In <73939@netnews.upenn.edu> gasser@eniac.seas.upenn.edu (Nathan Gasser ><>  ) writes:

>Hi all,

>1) Why the heck won't this work:

>alias zmore 'zcat $1 | more'

>It used to, I belive, but won't anymore.


Aliases don't have arguments like $0, $1 ...
You may put the whole rest of the command-line
after that zcat:

%alias zmore 'zcat \!* | more'

But note that this command may produce funny things if you use it
like any other (e.g. built-in) command:

%zmore file.Z >/dev/ttyp0
will expand to
%zcat file.Z >/dev/ttyp0 | more
(ambigous output redirect...)


>Thanks heaps,
>Nate
You're welcome

Mark Sebastian Fischer

/*************************************************************************\
* Mark Sebastian Fischer                             fischer@gmdzi.gmd.de *
* German National Research Center for Computer Science: GMD-FIT.KI.DoKamo *
* GMD | P.O.Box 1316 | D-5205 St. Augustin | Germany | [(49)2241] 14-2675 *
*   -  - ---  - - -  --- - --- ---    - --- -  - -  --- - -  -  - --- -   *
* It's 106 miles to Chicago, we've got a full tank of gas, half a pack of *
* cigarettes, it's dark, and we're wearing sunglasses.     (Elwood Blues) *
\*************************************************************************/
--
/*************************************************************************\
* Mark Sebastian Fischer                             fischer@gmdzi.gmd.de *
* German National Research Center for Computer Science: GMD-FIT.KI.DoKamo *
* GMD | P.O.Box 1316 | D-5205 St. Augustin | Germany | [(49)2241] 14-2675 *
From: pbm@hpfcso.FC.HP.COM (Peter McLain)
Date: Mon, 13 Apr 1992 15:47:24 GMT
Subject: Re: ksh stops forking processes
Organization: Hewlett-Packard, Fort Collins, CO, USA
Newsgroups: comp.unix.shell


    ksh has a compile time constant that limits the number of 
    child processes that ksh will fork.

Peter McLain
pbm@hpfclj.fc.hp.com
From: ken@wcsn.csms.com (Kenneth D. Fox WCSN Sr. Operations Engineer)
Newsgroups: comp.unix.shell
Subject: HELP
Keywords: grep egrep fgrep
Date: 7 Apr 92 18:58:56 GMT
Organization: WCSN, Christian Science Mon. Synd., Scotts Corner, Maine, USA


Hello,

Thanks for your help in advace. 

This is what I need to do? 

I have a file named Day.open
I would like to remove all lines that DO NOT contain
the following words XMISN XMITR COAX

The below script does the opposite by removing all lines 
containing XMISN XMITR COAX

Is there a shell (bourn shell) command that will direct 
all lines that do not contain XMISN XMITR COAX to a tmp file?

Thank you,
Ken
ken @wcsn.csms.com

: 
#
# place all lines with XMITR XMISN COAX in file open
cd /u/work.order/tmp
grep  'XMITR | XMISN | COAX' Day.open > open

#need to remove all lines in file /u/work.order/tmp/Day.open
# with XMITR XMISN & COAX in them
egrep -v ' COAX | XMISN | XMITR ' Day.open > open.2

cat open >> open.2
#lp -dlaser -ow open.2
#the end of the open work orders file 
Xref: sparky comp.unix.shell:1993 comp.unix.questions:5929 comp.unix.misc:1976 news.software.readers:1015
From: jik@athena.mit.edu (Jonathan I. Kamens)
Newsgroups: comp.unix.shell,comp.unix.questions,comp.unix.misc,news.software.readers
Subject: Re: How to save specific header line with 'rn' ?
Date: 7 Apr 92 14:45:29 GMT
Article-I.D.: pit-mana.JIK.92Apr7104517
Followup-To: news.software.readers
Organization: Massachusetts Institute of Technology

In article <1992Apr6.213356.7296@ccu.umanitoba.ca> jlim@silver.cs.umanitoba.ca (Tung Tseung Johnny Lim) writes:

   (Sorry if this is not the right group to post this message)

None of the groups you chose were the "right" one.
News.software.readers is for discussing news readers.  I have
cross-postd and directed followups there.

   I am new to the 'rn' program and find it very interesting.  I have checked
   the manual for 'rn' (man rn) and could not solve my problem.
   I would like to be able to save some news without including all the
   header lines (i.e. just to include: Date, From and Subject).

Rn uses the %X/norm.saver and %X/mbox.saver shell scripts to save
articles, where %X is the compiled-in location of rn's private library
directory (possibly /usr/lib/rn or /usr/local/lib/rn or something like
that; you'll have to ask someone locally, or type "!echo %X" in rn, to
find out where it is at your site).  You can tell rn to use different
shell scripts, and either (a) have those shell scripts strip off the
headers you don't want before feeding the article to the actual
mbox.saver or norm.saver scripts, or (b) actually make those shell
scripts modified copies of the mbox.saver and norm.saver scripts, so
that they save directly.

See the rn man page to find out how to use different mbox.saver and
norm.saver scripts.

   I know that I can just type in: s in 'rn' to save an article or a range of 
   articles, but I don't know how I can "customize" 'rn' to omit other header
   lines when saving.

Rn saves articles with the same header lines it displays on-screen.
You could actually use the '&' command to hide the headers you don't
want and then save the article, but that's quite cumbersome,
especially since you'll have to undo your settings if you keep on
reding news.

-- 
Jonathan Kamens						jik@MIT.Edu
MIT Information Systems/Athena		    Moderator, news.answers
    (Send correspondence related to the news.answers newsgroup
	{and ONLY correspondence related to the newsgroup}
		 to news-answers-request@MIT.Edu.)
From: bengtl@maths.lth.se (Bengt Larsson)
Newsgroups: comp.unix.shell
Subject: Re: Wanted:  Generate sequential file names
Date: 15 Apr 92 13:20:35 GMT
Organization: Lund Institute of Technology, Sweden

In article <1992Apr14.020643.1498@candle.uucp> root@candle.uucp (Bruce Momjian) writes:
>Does anyone have a nifty bourne shell script which turns filenames like: 
>
>	fred003	 	into 	fred004
>	barney06	into	barney07
>
>and so forth?  It should work for a variable number of zeros.  I want to
>use this for keeping log files.

Assuming no whitespace in filenames:

   newfile=`echo "$oldfile" | sed 's/[0-9]*$/ &/' |
   awk '{printf (sprintf("%%s%%0%dd\n",length($2))),$1,$2+1}'`

Bengt Larsson
-- 
Bengt Larsson - bengtl@maths.lth.se
From: root@candle.uucp (Bruce Momjian)
Newsgroups: comp.unix.shell
Subject: Re: Wanted:  Generate sequential file names
Date: 15 Apr 92 15:05:24 GMT
Organization: a consultant's basement

root@candle.uucp (Bruce Momjian) writes:
: Does anyone have a nifty bourne shell script which turns filenames like: 
: 
: 	fred003	 	into 	fred004
: 	barney06	into	barney07
: 
: and so forth?  It should work for a variable number of zeros.  I want to
: use this for keeping log files.

Well, no one suggested a general solution, so I wrote my own.  Here it
is.  It inputs one or many file names, uses the last file name given, and
increments it.  I use the last file name so I can say

	next_log /usr/adm/kprof/kprof*

and if there are several files in the directory, it operates on the
highest, assuming enough leading zeros.  Of course, this program is used
within another script like:

	mv logfile `next_log /usr/adm/logs/log*`

The first log file must be created with enough leading zeros so it
doesn't roll over during use.  If you have lots of files, the '*'
expansion may cause an error.

----------------------------- cut here --------------------
:
#next_log
[ "$#" -eq 0 ] && echo $0 " needs a log name" && exit 1
while [ $# -gt 1 ]	# get last file
do
	shift
done
BASE=`expr $1 : '\(.*[^0-9]\)[0-9]*$'`	# file name without trailing digits
VAL=`expr $1 : '.*[^0-9]\([0-9]*\)$'`	# only trailing digits
LEN=`expr $VAL : '.*'`			# number of trailing digits
VAL=`expr $VAL + 1000000001`		# used to increment & keep leading zeros
VAL=`echo $VAL | cut -c\`expr 11 - $LEN\`-10` # cut off leading zeros not needed
echo $BASE$VAL				# reconstruct file name


-- 
Bruce Momjian           | 830 Blythe Avenue               | home: (215)853-3000
root%candle.uucp@ls.com | Drexel Hill, Pennsylvania 19026 | work: (215)353-9879
From: mick@cict.fr (Michel Castagner)
Newsgroups: comp.unix.shell
Subject: Re: sh questions
Date: 7 Apr 92 12:51:00 GMT
	<1992Mar28.050238.22306@paramount.nikhefk.nikhef.nl>
	<mcook.701795268@mrc.dev.cdx.mot.com>
Organization: Centre Interuniversitaire de Calcul de Toulouse
In-reply-to: mcook@mrc.dev.cdx.mot.com's message of 28 Mar 92 15:07:48 GMT

Thanks for your response
Newsgroups: comp.unix.shell
From: tbrandl@Physik.TU-Muenchen.DE (Thomas Brandl)
Subject: Re: ksh source wanted!
Organization: Technische Universitaet Muenchen, Germany
Date: Tue, 7 Apr 1992 13:00:14 GMT

at887@cleveland.Freenet.Edu (Scott Butler) writes:


>Sorry if this is a FAQ, but I am desperately seeking the source code for the
>korn shell....any help/hints would be greatly appreciated!

>*** PLEASE E-MAIL RESPONSES TO ME - THANX! ***

>Thanx a lot,
>Scott

>-- 
>Scott Butler
>------------
>100% disclaimer-free!

In Germany, try switek.uni-muenster.de and the directory ???/shells
There you can find PD-ksh-4.0xx.

In USA try wuarchive.wustl.edu and the directory usenet/comp.sources.misc/volume25/pdksh/part01-09 .

I hope, the directories haven't changed.

Thomas Brandl
Thomas.Brandl@cip.physik.tu-muenchen.de
From: elliss@kira.egr.msu.edu (Stew Ellis)
Newsgroups: comp.unix.shell
Subject: Re: Maintaining .cshrc files across several machines
Date: 11 Apr 92 16:39:56 GMT
Article-I.D.: msuinfo.1992Apr11.163956.23104
Organization: Michigan State University

leisner@johnker.henr801@xerox.com (Marty Leisner x76704 siena) writes:

>In article <rantapaa.702769062@s6.math.umn.edu> rantapaa@s6.math.umn.edu (Erik E. Rantapaa) writes:
>>Has any one solved the problem of maintaining .cshrc files across
>>several machines?  In particular, it would be nice to have a
>>'cshrc-config' program which would sniff out a system for binary
>>paths, libraries, etc.
>>

>First, I think it is a mistake to put environment variables in the .cshrc file.

>Much better to put them in the .login file, so they are executed once.

I was trying to hold to this philosophy and the one below, sensing whether I
was on a sun4 or a DEC mips so I could tell which version of a hostname 
trimmer and path trimmer to run when I set my prompt with a cd alias.
For some reason I am still not clear on, my cd alias would not set from .login,
so I had to move the whole mess to .cshrc.  Any clue why I was losing my 
alias?  I confirmed I was in the loop with an echo statement.
Any help will be appreciated.

>Second, instead of multiple files, have one file for all machines with the
>appropriate if conditionals in the script...


>marty
>leisner.henr801c@xerox.com
>Member of the League for Programming Freedom
>(You get what you pay for -- except in software)


Stew
--                                                        ___________________
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.   /        / /  /  / /
  Flint, MI 48504      ellis@edsel.gmi.edu             /________/ /  /  / /
  NoNetNewsAtGmiYet    elliss@frith.egr.msu.edu       ___________________
From: mellema@rulcvx.LeidenUniv.nl (Garrelt Mellema)
Newsgroups: comp.unix.shell
Subject: Why does SunOS crash for '(cmd &) >& /dev/null'?
Keywords: SunOS 4.1.1, csh
Date: 14 Apr 92 08:07:22 GMT
Organization: CRI, Leiden University, the Netherlands.


Hello,

We have been experiencing problems with the following type of command in
csh of Sun Sparc1s running SunOS 4.1.1:

( command & ) >& /dev/null

Issueing a command like this on the command line crashes the machine
at a rate of about 1 in 3 times. However, running this sort of command
in a csh (-f) script or in the .cshrc before we do some stty commands
(yes, we make sure not to run these in an non-interactive shell) seems
to give no problems.

Is this a bug in SunOS or are we doing stupid things. We now know where
not to place it, but at the moment we are not sure that our 'safe places'
are really safe (i.e. they do cause crashes, only less frequent).

Any help or suggestions would be greatly appreciated.
Please email me at mellema@rulcvx.LeidenUniv.nl

Garrelt Mellema
Leiden Observatory, Leiden, The Netherlands
-- 
Garrelt Mellema                         | Internet: mellema@rulcvx.LeidenUniv.nl
Sterrewacht Leiden / Leiden Observatory | UUCP: ...!mcsun!hp4nl!rulcvx!mellema
University of Leiden, The Netherlands   | EARN/BITNET: mellema@hlerul51
Newsgroups: comp.unix.shell
Subject: Re: sed - use with multiple files
From: ecmtwhk@ccu1.aukuni.ac.nz (Thomas Koenig)
Date: Tue, 14 Apr 1992 09:35:25 GMT
Organization: University of Auckland, New Zealand.


In article <1992Apr8.022554.8516@unixland.natick.ma.us> trw@unixland.natick.ma.us (Tim Weil) writes:
>I'm looking for a way to use sed with an editor (vi would be fine)
>to make global changes to a set of files in a subdirectory. 
>Can this be done with shell programming?

For this kind of thing, I usually use ex, like in

#! /bin/sh
for a in *
do
ex <<NO_MORE 2>&1 >/dev/null  # can't stand to see ex work :-)
%s/foo/bar/g
wq
NO_MORE
done
-- 
Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
Snail-Mail: 
c/o Department of Chemical and Materials Engineering, University of Auckland,
Private Bag 92019, Auckland, New Zealand