HDTenEightyP/NetNews huggingface dataset:
From: levan%eagle@EKU (Jerry LeVan)
Newsgroups: comp.unix.aux
Subject: cu and sendmail probs
Date: Sat, 3 Oct 1992 11:37:11 -0400
Organization: Listserv to Netnews Gateway at pucc.Princeton.EDU

Hello,

I am starting to beat on uucp for release 3.0. I manage
a small network of unix boxes and try to manage them from
my Mac.

Problem 1) Not really a problem, but rather an annoyance.
The default tty settings for CommandShell windows do not
have "istrip" turned on. If I forget to "stty istrip" prior
to using "cu hostname" bad things happen to the output.

Is there a way to change the default tty settings of
CommandShell windows?

*************************

Once apon a time I had a nifty sendmail configuration tutorial
that I obtained somewhere on bitnet/internet. When read with
the Sendmail Installation and Operation Guide - Eric Allman,
I was able to actually make meaningful changes to sendmail.cf.

Alas, I have lost the tutorial...If you know of the tutorial
please send instructions on how to retrieve it.

Thanks

Jerry LeVan (levan%eagle@eku.bitnet)
Newsgroups: comp.unix.aux
From: gsm@gsmmac.ctd.ORNL.GOV (Gregory S. McNeilly)
Subject: Mouse Systems A-3 Mouse and A/UX 3.0
Reply-To: gsm@ornl.gov
Organization: Oak Ridge National Laboratory
Date: Wed, 30 Sep 1992 21:06:10 GMT

Following the FAQ, and since the Gravis mouse is out of production, I finally got the above, having
tired of trying to make three buttons out of a one button MacMouse.  The manual has a number of
warnings regarding using the supplied cdev - use only with MacOS.  For A/UX, just plug in and use.
 
After powering down and installing the mouse, I have found the mouse to be "compatible" with A/UX,
in the sense that the system doesn't crash, but not too interesting - all three buttons act like the
original one-button mouse.  I.e., no left and right arrow behavior from the second and third buttons.

Mouse Systems tech support at ~12:30 PDT today was clueless - the person(s) talked to didn't even
know what their own manual said about MacX and A/UX.

I'm hoping someone can tell me how to get useful behavior with this device.

Thanks in advance.

-- 
-------------------
Gregory S. McNeilly ( gsm@ornl.gov )            ,---.
Oak Ridge National Laboratory                  o     \
POB 2008                                <=====<       >=====>
Oak Ridge, TN  37831-6370                      o     /
(615)574-5446 (FAX)576-3513                     \___/

Newsgroups: comp.unix.aux
From: rhs@world.std.com (Richard H Schwartz)
Subject: Re: A/UX Question
Organization: The World Public Access UNIX, Brookline, MA
Date: Tue, 29 Sep 1992 23:39:35 GMT

broberts@waggen.twuug.com (Bill Roberts) writes:

>Because of the port problem my UUCP won't run and I cant do a long
>listing on a ImageWriter.  BOTTEM LINE - Go near the serial ports with
>anything that smells like a load and the kernal will panic and the
>system will die unless you have AT LEAST AN FX.

Do kermit file transfers on a V.32 modem smell like a load?  I've been
running 3.0 beta and now the general release for as long as I've had
my 9MB IIsi.  This thing is no speed demon, but it is quite acceptable 
for every purpose I've come up with so far.

With the recent price cuts, a fully capable IIsi with A/UX software should
come in just under or around $3,000.  For that price, you can probably
get a 486/33 that will be much faster, so while I disagree with the tone
of the post, I reluctantly agree that the 486 route is more economical for
those who don't have a heavy investment in Mac software.

-rich

-- 
             Richard H. Schwartz, Scheduling Systems Inc.,
            1000 Massachusetts Avenue, Cambridge, MA  02138
                  (617) 864 8330; FAX (617) 864 8377
                          rhs@world.std.com
From: time@ice.com (Tim Endres)
Newsgroups: comp.unix.aux
Subject: Re: CD Roms and A/UX
Date: 3 Oct 92 03:57:06 GMT
Reply-To: time@ice.com (Tim Endres)
Distribution: usa
Organization: ICE Engineering, Inc.
X-Mailer: uAccess - Macintosh Release: 1.6v1


In article <1992Oct2.075320.6195@netcom.com> (comp.unix.aux), sep@netcom.com (Scott Pendleton) writes:
>         I'm about to purchase a NEC CDR-74 drive. Is it true that it won't
> support loading A/UX 3.0? Please tell me its not true. Have you heard anything
> further about this latest Trantor Driver? Pleae let me know. As far as
> PhotoCD goes, I heard over on alt.CD-ROM that some guy has gotten a PhotoCD
> disc to mount on his Mac. Here is the text of the article:

I have successfully loaded A/UX 3.0 from that CD, but I could not
use it under the Finder when I booted A/UX.


tim endres - time@ice.com  -or- tbomb!time
ICE Engineering, Inc - 8840 Main St, Whitmore Lake, MI 48189
Phone (313) 449 8288 - FAX (313) 449-9208
USENET - a slow moving self parody... ph
Newsgroups: comp.unix.aux
From: kc@netcom.com (Dameon D. Welch)
Subject: Re: tcsh 6.02 problem on HP-UX
Keywords: tcsh,HP-UX,400
Organization: Wayne's World, Inc -- NOT!
Distribution: de
Date: Sat, 3 Oct 1992 20:49:44 GMT

In article <1992Oct2.142617.17897@kocrsv01.delcoelect.com> scott@koptss03.delcoelect.com (Scott E. Post) writes:
>
>I just built tcsh-6.02 on several HP 9000/700's and 400's.  Now when
>I log in to one of my 400's I get the following error:
>
>  tcsh: getwd: Cannot stat "LOCAL_DATA" (No such file or directory)
>  tcsh: Trying to start from "/users/scott"
>
>It's interesting that this doesn't occur on my 700's or another 400 that I 
>put tcsh on.

I had problems compiling tcsh under 8.0 on HP9000/300 series. I fixed
it by turning off the ANSI flag in the cc options (-Aa). I changed it
to -Ac (later I found out that all that was necessary was to just
remove -Aa). Might want to try that and see if that makes any
difference.
-- 
Dameon Welch, NH6TW
kc@netcom.com               +-----------------------------------------+
Engineering Design Center   | Help, I'm trapped in a .signature file! |
Santa Clara University      +-----------------------------------------+
From: vijay@ncsa.uiuc.edu (Vijay Rangarajan)
Newsgroups: comp.unix.shell
Subject: Re: sed question.
Date: 29 Sep 92 21:24:27 GMT
Article-I.D.: ncsa.1992Sep29.212427.5010
Distribution: usa
Organization: Nat'l Ctr for Supercomp App (NCSA) @ University of Illinois
Originator: vijay@picard.ncsa.uiuc.edu

In article <1992Sep29.191410.3307@ncsa.uiuc.edu> vijay@ncsa.uiuc.edu (Vijay Rangarajan) writes:
>How would I substitute space by newline in a file using sed ?

A.Raman@massey.ac.nz emailed me suggesting tr ' ' '\012' to do the
job, instead of using sed.

>is it possible to do that with sed ?

Probably not.

Vijay.
Newsgroups: comp.unix.shell
From: tophat1!biernat (Timothy S. Biernat)
Subject: Re: wksh <-- HELP!
Keywords: ksh,windows
Reply-To: biernat@rtsg.mot.com
Organization: Motorola Inc., Cellular Infrastructure Group
Distribution: usa
Date: Tue, 29 Sep 1992 22:54:06 GMT


got some leads on wksh.  it is a product from USL that
sounds pretty nifty.  it is essentially ksh with support
for creating and managing X objects.  some basic motif 
and openlook functions are also supported.  built-in support
for callbacks negates the need for any additional C code.  
programmer's guides are also available.

sounds like wksh is available on 386/486 and sparc platforms.
it ain't cheap.  for latest info contact USL.

thx to all who responded !

tim
From: bruno@athena.mcrcim.mcgill.edu (Bruno Hall)
Newsgroups: comp.unix.shell
Subject: First character in a string -- how?
Date: 2 Oct 92 17:11:15 GMT
Article-I.D.: thunder.1992Oct2.171115.27063
Distribution: na
Organization: McGill University Broom Closet

A kiddie-question?  Probably :-).

I'm trying to extract the first character from a shell variable, and 
can't seem to sed myself out of this one.

Any ideas?

Bruno
-- 
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Bruno Hall  |  VE2HUM  |  bruno@mcrcim.mcgill.edu         
McGill Research Centre for Intelligent Machines - Controls Group
New systems generate new problems -- Join the Flat Earth Society.
Newsgroups: comp.unix.shell
From: sasmob@chewy.unx.sas.com (Mark Burhans)
Subject: Re: force alias ?
Originator: sasmob@chewy.unx.sas.com
Date: Wed, 30 Sep 1992 21:17:48 GMT
Organization: SAS Institute Inc.


In article <1992Sep29.174840@is.morgan.com>, holger@is.morgan.com (Holger Veith) writes:

|> then on the oher hand, how can I force an alias lookup?  I run an emulator
|> and alias x3270=x3270 -a -g.  When I run x3270 from my root menu
|> (coded in .mwmrc) it does not pick up the alias, so I have to put the same
|> -a -g options into my .mwmrc file.
|> 
|> How can I force an alias look-up?

Does mwm not need the quotes ( ' ' ) around the alias definition?
  eg    alias x3270='x3270 -a -g'

In other words, see if the syntax is correct for the shell.  Not sure,
but I would think that the .mwmrc is your window manager file and not
your shell manager file... eg .kshrc

Anyway...  Thought I'd blab...
-- 
---Mark C. Burhans---sasmob@chewy.unx.sas.com---919/677-8001 ext 7324
SAS Institute, Inc., USA, SAS Campus Drive, Cary, NC 27513.
--Ever wonder what noises the phone would make had it been invented by
Mr. Bowels? --
 
Newsgroups: comp.unix.shell,comp.unix.programmer
From: Harald.Eikrem@delab.sintef.no
Subject: Re: how to set parent's environment variables from shell script?
Organization: SINTEF DELAB, Trondheim, Norway.
Date: 6 Oct 92 01:32:51

David Cogen <cogen@ll.mit.edu> wrote:
! I need to write a shell script which sets the environment variables of the 
! caller. I am using csh, but could perhaps be convinced to use another shell
! if this will make this possible.
!
! Doing setenv in the script doesn't work, because the changes are not 
! exported to the parent. I have come up with 2 solutions, neither of which are
! acceptable:
!
! 1) I could 'source' the file, instead of execute it as a new process. While
! this will set the caller's environment variables, I cannot parameterize a
! sourced file with command-line arguments as I can a normal shell script.

Sure, with tcsh you can pass command line args with the `source' command,
albeit you will have to pick them up with !:n in the script file, or maybe
  if ( "!*" != "" ) set argv=( !* )
at the top of the script.

! 2) I can run the script with 'exec <name>', and have the script terminate with
! 'exec $SHELL'. exec overlays the current process with the new command, and
! most of the attributes of the current shell---input historary and environment variables---are preserved. However, this resets standard input, so that I cannot
! run my script from within .login, for example; once my script does the exec,
! the remainder of the .login is forgotten.
!
! So, can anyone suggest a third solution, or a way to overcome the deficiencies
! of my two inadequate solutions above? Please help!

Well, in case of non-csh script files, you may of course 

  for var in $EXPORTABLES
  do
    case $SHELL in
      *csh)
	eval echo setenv $var '\"'$"$var"'\"\;'
	;;
      *)
	eval echo $var='\"'$"$var"'\" export '$var'\;'
    esac
  done


and then

  eval `scriptname args`

or something like that.  But then you'd have to be sure nothing else gets
printed to stdout from that script.

  ~~h
From: ce202a2@prism.gatech.EDU (Peter L. Thomas, AE)
Newsgroups: git.oit.questions,comp.unix.shell
Subject: How to mail to multiple users (i.e. a mailing list)
Date: 28 Sep 92 00:22:53 GMT
Followup-To: poster
Organization: Georgia Institute of Technology

I can't figure out how I did this some years ago.

I have a file with many user names, (in RFC format, including
their real names), one name to a line.

I am trying to write a Korn Shell script to send a message
to each of these users sequentially.

I've done this once before, with something close to this:

while read name < sae.addresses; do ;\
mail -s "MESSAGE" $name < message.file ; done

But this isn't quite right.  The "read name < sae.addresses" reads
the first name of the file each time, rather than reading each
name one after the other.  (i.e. it results in an endless string
of messages to the same user).

Luckily I've only done debugging with my test commands so far, so
I haven't clobbered anyone's mailboxes.

Help!

--Pete
-- 
Peter L. Thomas (Senior AE)
"Figures never lie, but liars always figure."
Georgia Institute of Technology, Atlanta Georgia, 30332
Internet: ce202a2@prism.gatech.edu
Xref: sparky comp.unix.shell:4154 comp.unix.questions:11572
From: nrs2495 (Bill Reed )
Newsgroups: comp.unix.shell,comp.unix.questions
Subject: Help with sysv bourne expr command
Date: 29 Sep 92 16:49:27 GMT
Reply-To: nrs2495
Organization: dsac-rsb

What I am trying to do here is get a total count in megabytes, that these 
certain filesystems take up.  Everything works fine, except for the "expr"
line.  I just can't get it to add the cut material.  Does anyone see what
I am doing wrong?  Or with bourne shell, is there another way of doing this?
FSTOTAL=0
dfspace2 > /tmp/dfspace2

for FSYSTEMS in /rb /rm /usr2 /pcnfs /usr /r /rs /rr /inx / /ieps   
do
   # get the megabyte count from each filesystem 
   FSONE=`cat /tmp/dfspace2|fgrep $FSYSTEMS' '|cut -c14-19`
   # total the count up
   FSTOTAL=`expr $FSONE + $FSTOTAL`  # syntax error 
done
echo $FSTOTAL

here is a line from /tmp/dfspace2, spacing is not correct:

/           :         11.68 MB  of   26.45 MB available  (44.15%).


thanks, bill

Newsgroups: comp.unix.shell
From: shin-jungshik@CS.YALE.EDU (Jungshik Shin)
Subject: Re: Accepting stdin as an input in Bourne shell script
Keywords: stdin,shell,Bourne,input
Organization: Yale University
Date: Sun, 27 Sep 1992 08:35:26 GMT

In article <1992Sep27.061718.9963@news.yale.edu> shin-jungshik@CS.YALE.EDU (Jungshik Shin) writes:
  My question was somewhat ambiguosly stated and it causes some confusion
from netters so that I like to state it again in more obivous way.
  
   What I like to get is Bourne shell equivalent of following C program
line.
    input = fopen("stdin","r")
   where input is a FILE type variable.

>  I know it's possible to get an input from stdin in CSH or TCSH script. For
>instance, Following gets a filename from stdin and print it out.
>   set file= $<
>   lpr  $file
  This was problematic. I misunderstood meaning of '$<' and got an answer to
use 'read' in Bourne shell, which can do identical thing as $<.
>
>  Is there any way to do the same thing in Bourne shell?  
>I made a kind of long shell script and I like to add a feature getting input
>from stdin instead of filename in the command line thus allowing piping of 
>an output from other program to my shell script. Because, it's quite long, I 
>don't like to translate it to CSH or TSCH. Rather, I hope I can do it with
>Bourne Shell.

   Within an hour of my posting, I got a solution inspired by what Mr. Jim
Davis pointed out to me in his solution, 'cat gets its input from stdin 
and sends its output to stdout'.  My solution is 

   #!/bin/sh
   IN=/tmp/stdin.$$
   cat >$IN

   #treat $IN as if $IN pointed to a usual file name 
   .........
   lpr $IN
   grep something $IN
   .......
   rm -f $IN

 Originally, the 1st two lines were 
  cat >/tmp/stdin.$$
  IN=/tmp/stdin.$$

 Mr. Jeff Beadles saved me several bytes by saying that I can do it the way
it is now. 

   I welcome any comment on the solution I came up with. 

   Thanks in advance,

   Jungshik Shin

Newsgroups: comp.unix.shell
From: messina@netcom.com (Tony Porczyk)
Subject: Re: #!/bin/sh | #!/bin/ksh ...
Organization: Messina Software
Date: Thu, 1 Oct 1992 04:02:12 GMT

dinguyen@wam.umd.edu (Dzi Nguyen) writes:

>I encountered which really bother, 'cause I couldn't find any documentation
>about it that is most shell script at the top of the files they always have
>this line:
>#!/bin/sh 
>or
>#!/bin/ksh
>or
>#!/bin/csh

They simply specify which shell should execute the script below.
Saying:
#!/bin/csh
is the same as saying:
$ /bin/csh <filename>
It assures that the shell you want will execute (instead of possibly
different default shell).

t.
Newsgroups: comp.unix.shell
From: darrell@netcom.com (Darrell Sell)
Subject: Question on C shell syntax
Followup-To: comp.unix.shell
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Distribution: ca
Date: Tue, 6 Oct 1992 15:03:54 GMT

I have written an installation script in C shell for 
a client where the emphasis has been on "user friendliness".  
It has on-line help. It checks the validity of the user's inputs and
gives him/her a second chance on an invalid input. 

Unfortunately, C shell itself is at best marginally user friendly.

A structure as follows:

echo -n "Enter a path"
set r = $<
if ($r == path1) then
	do something
else if ($r == path2) then
	do something else
else
	bad response, try again...
endif

blows up with "If: Expression syntax" if the user enters something with
white space by mistake.


This seems to be "fixed" if the 'if' expressions are changed to:

if ("$r" == path1) then ....

Does this latter structure with the quoted "$r" introduce any problems of
its own?  Is this quoted approach good programming practice for C shell?


-------
Darrell Sell 				internet: darrell@netcom.com
Sell and Associates			voice:  (408) 354-7794
Newsgroups: comp.unix.shell
From: kbornhor@rodin.helios.nd.edu (keith bornhorst)
Subject: running a prg inside a shell
Reply-To: kbornhor@rodin.helios.nd.edu (keith bornhorst)
Organization: University of Notre Dame, Notre Dame
Date: Tue, 6 Oct 1992 03:41:43 GMT


Is it possible to run a program like xv or xrn or whatever inside a shell program.

I'd like to be able to write a shell program that will load one program, after pressing quit in that program, go back to the original shell and doing other stuff...     Any suggestions?

Xref: sparky comp.unix.shell:4145 comp.unix.admin:5246 comp.unix.wizards:4093
From: mike@pacsoft.com (Mike Stefanik)
Newsgroups: comp.unix.shell,comp.unix.admin,comp.unix.wizards
Subject: Re: Locking out users
Date: 28 Sep 92 06:16:27 GMT
Followup-To: comp.unix.shell
Organization: Pacific Software Group, Riverside, CA

In an article, bzs@ussr.std.com (Barry Shein) writes:
>I don't know why you think this is easier than, eg, just putting
>a * in front of the person's passwd encryption and/or the message.

For systems with "enhanced security", this too can be abused by a malicious
person. The individual can continue to attempt to login, and fail.  After
a number of attempts, the port is disabled. This is done for each dialup line,
no legitimate user can login and the admin ends up getting paged during the
weekend because none of the dialup ports "work".

-- 
Mike Stefanik  mike@pacsoft.com  ...!uunet!pacsoft!mike  (714) 681-2623
Pacific Software Group, Riverside, CA
Newsgroups: comp.unix.shell
From: Kim Holburn <kim@csc.canberra.edu.au>
Subject: Re: how to get a previously typed command using Arrow keys
X-Xxmessage-Id: <A6EE4ACBC60105C3@taiji.canberra.edu.au>
X-Xxdate: Tue, 29 Sep 92 02:02:51 GMT
Organization: University of Canberra
X-Useragent: Nuntius v1.1.1d11
Date: Tue, 29 Sep 92 07:44:46 GMT

In article <1992Sep23.170140.20395@a.cs.okstate.edu> KAVUTURU SIVA RAMA,
siva@a.cs.okstate.edu writes:
>    Hai,
>          I am used to use DOS very much. So these days I am trying to
>          simulate some of the DOS commands on UNIX for myself. Can any 
>          one Please help me HOW TO GET A PREVIOUSLY TYPED COMMAND BY
>          JUST TYPING ARROW KEYS AT THE $ PROMPT. In DOS if we run
dos-edit
>          we can edit the previously typed command. Can any one help me
>          in solving this problem.

Use tcsh or zsh, it's built in. Just like DOS edit only better and you
get filename completion (and with tcsh command completion). 
You may have to talk your systems administrator into putting one of them
up.

+----------------------------+-----------------------------------------+
|   Kim Holburn              |   Internet : kim@csc.canberra.edu.au    |
|   Computer Services Centre |                                         |
|   University of Canberra   |   Phone    : (06)201 2203, (06)201 2401 |
|   PO Box 1 Belconnen       |                                         |
|   ACT  Australia           |   Fax      : (06)201 5074               |
+----------------------------+-----------------------------------------+
|     born again and again and again and again and again buddhist      |
|                    well... in a previous life anyway  :-)            |
+----------------------------------------------------------------------+
Xref: sparky comp.unix.shell:4176 comp.unix.questions:11668
From: cjross@bbn.com (chris ross)
Newsgroups: comp.unix.shell,comp.unix.questions
Subject: Re: Help with sysv bourne expr command
Date: 1 Oct 92 13:20:52 GMT
NNTP-Posting-Host: bbn.com

nrs2495 (Bill Reed ) writes:

>What I am trying to do here is get a total count in megabytes, that these 
>certain filesystems take up.

>for FSYSTEMS in /rb /rm /usr2 /pcnfs /usr /r /rs /rr /inx / /ieps   
>do
>   FSONE=`cat /tmp/dfspace2|fgrep $FSYSTEMS' '|cut -c14-19`
>   FSTOTAL=`expr $FSONE + $FSTOTAL`  # syntax error 
>done
>echo $FSTOTAL

In general, using expr (or test, sed, cat, grep etc...) inside a for
loop is a sub-optimal solution.  If you can replace the whole loop
with an awk script (possibly as part of a simple pipeline), you'll see
a significant performance improvement.

>here is a line from /tmp/dfspace2, spacing is not correct:
>/           :         11.68 MB  of   26.45 MB available  (44.15%).

Assuming dfspace2 produces consistent output, with the filesystem name
in the first field and the space used in the third:

{  echo /rb /rm /usr2 /pcnfs /usr /r /rs /rr /inx / /ieps
   dfspace2
} | awk '
NR == 1 {
	for ( i = 1; i <= NF; i++ )
		do_fs[$i] = 1;
	next;
}
do_fs[$1] == 1 { total += $3; }
END { print total; }
'

chris ross   <cjross@bbn.com>   BBN Advanced Simulations   (617) 873-3272
 WARNING: article may contain flammable material.  Do not expose to open
   flames.  In case of accidental ignition, douse keyboard with water.
From: makuch@cs.utexas.edu (Michael K. Makuch)
Newsgroups: comp.unix.shell
Subject: idle user logoff
Date: 28 Sep 1992 16:23:47 -0500
Organization: CS Dept, University of Texas at Austin
Distribution: usa
NNTP-Posting-Host: muleshoe.cs.utexas.edu
Keywords: auto logoff

Looking for a script which implements "idle-user-logoff". Please mail me
if you have one or know where I can get some info on writing one.


Newsgroups: comp.unix.shell
From: borrel@dhhalden.no (Borre Ludvigsen)
Subject: Automated mail > file cat & decoding ?
Reply-To: borrel@dhhalden.no (Borre Ludvigsen)
Organization: Ostfold College
Date: Mon, 5 Oct 1992 09:54:52 GMT

Automated mail > file cat & decoding ?

We need a shell script, program, gizmo that reads a mail spool file, recognizes a  
series of uuencoded images (which are not necessarily in the right order), extracts  
them, cats them in the right order, strips headers and decodes. 

Tall order?

We're running the Internet anonymous ftp site for the NOA/NESDIS wxsat waffle server  
being run by the System Support Group. Images are fed over as mail. They're not  
always in the right order and other type of mail will be interspersed. It would of  
course, also be useful to have other, plain mail automatically saved too. Ideally,  
we're looking for a mail reading agent with an IQ high enough to see the difference  
between text and uuencoded binary and to know what to do with it. Ie. read, sort,  
convert and sluice it to the right directory of anonymous ftp account.

If anyone has any tips, scripts or code that they think might help, we'd be  
etarnally grateful.


Kjell Are Refsvik <kjellr@dhhalden.no>
&
Barre Ludvigsen <borrel@dhhalden.no>
Newsgroups: comp.unix.shell