HDTenEightyP/NetNews huggingface dataset:
From: bibhas@pico.engr.mun.ca (Bibhas Bhattacharya)
Subject: Re: "vi" the 1st prob. revisited...
Keywords: vi/UNIX
Organization: Memorial University of Newfoundland
Date: Mon, 28 Sep 1992 12:41:42 GMT

rayj@Celestial.COM (Ray Jones) writes:

>In <bibhas.717441366@femto.engr.mun.ca> bibhas@pico.engr.mun.ca (Bibhas Bhattacharya) writes:

>>Two questions regarding vi:
>>1) I find the line wrapping extremely awkward when something is added onto
>>a line in the middle of it. For a multi-row line cursor movement becomes
>>painful; if you know what I mean.

>Use the "warp margin" option of "vi" and it will automaticaly put in the
>new line at the end of the line.

I think I didn't phrase my question properly. Here's an example:

Original lines:
^^^^^^^^^^^^^^^
Mary Poppins goes to jail for shoplifting in Target. However, the brown
fox was quite innocent.

Line appended in the meiddle:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mary Poppins goes to jail [ANY ADDITION CAUSES A LINE BREAK] for shoplifting in Target. However, the brown
fox was quite innocent.

This happens with a wrap margin of 8. Any later addition breaks up the
line in a very ugly way. This is a constant prob. when editing my thesis.

Due to some inexplicable reason vi is not reading my .exrc file at start time,
unless called by a second program like mailer or news reader. Manually
setting the parameters didn't solve the first problem.
Any pointers, or am I missing something.
Bibhas.
Xref: sparky comp.unix.questions:11576 comp.os.ms-windows.programmer.win32:1222 comp.unix.dos-under-unix:40
From: nitin@Ingres.COM (Nitin Borwankar)
Newsgroups: comp.unix.questions,comp.os.ms-windows.programmer.win32,comp.unix.dos-under-unix
Subject: Re: NT Under SCO Unix
Date: 29 Sep 92 16:50:58 GMT
Reply-To: nitin@Ingres.COM (Nitin Borwankar)
Organization: Ask Computer Systems Inc., Ingres Division, Alameda CA 94501

In article <1992Sep29.134239.13608@cam-orl.co.uk> thg@cam-orl.co.uk (Tim Glauert) writes:
>In article <1a807pINNiss@almaak.usc.edu>, ajayshah@almaak.usc.edu (Ajay Shah) writes:
>|> jbone@splat.dell.com (Jeff Bone) writes:
>|> 
>|> >Aaaargh!  Not this damned argument again!  NT will, supposedly, implement
>|> >a *strict* subset of UNIX --- POSIX.
>|> 
>|> Many people have written that the "POSIX under WNT" may be a con, a
>|> way to attract software development under the false promise of source
>|> compatibility with Unix.
>
>You are the first person I have heard say so. MS folk have repeatedly promised
>full POSIX compatibilty.
>
>BTW, you can't be "source compatible" with Unix, because there is really no
>single thing that is "Unix". Without using a standard layer such as POSIX it
>is very difficult to write sophisticated code that will run on different
>versions of Unix. Take a look at the source to xterm! :-)
>
>And anyway, the promise of POSIX compatibility might attract interest in NT
>but it won't attract software development for NT unless it exists in a
>concrete form that can be used.
>
>|> Just like the false promises of running DOS software.
>
>Eh? Do you mean you have proof that NT won't run DOS software? Are they going
>to remove the support for DOS software which is already there?

The question originally posed re: NT under SCO via SCO-MERGE like product
has been answered in the first reply to it with a simple "no".

Could we take the rest of this discussion to e-mail or at least change
the Subject: line ? Also please do this before people from all the other
groups in the cross post start complaining *here* that they don't really care
about NT.


These OS religious wars significantly degrade the signal to noise ratio
which has been relatively high in this group so far.
---------------------------------------------------------------------------
Nitin Borwankar,
nitin@ingres.com  *** visualize whirled peas ***
---------------------------------------------------------------------------
From: mugsy@winton.uucp (Michael G. Bruce)
Newsgroups: comp.unix.questions
Subject: Re: global finger
Date: 1 Oct 1992 03:58:59 GMT
Organization: Worcester Polytechnic Institute, MA
NNTP-Posting-Host: winton.wpi.edu

In article <1ado4pINN5be@spool.mu.edu> jason@studsys.mscs.mu.edu (Jason Hanson) writes:
>>>Is there a way of fingering everybody at a site?  (ie.  finger*@spool.mu.edu)?
>>Pretty close Jason, if the host is reachable you can do `finger @spool.mu.edu'
>>(using your example) to see everyone logged in.
>
>Yes, I know but I am looking for a list of all, logged in or not.  Note that if
>I finger jhanson@helios.uwsp.edu, I get this:
>
>[helios.uwsp.edu] 
>Login name: jhanson   			In real life: Jason Hanson
>Directory: /usr2/other/jhanson      	Shell: /bin/sh
>Plan:  
>To get UWC-Fox Valley into the modem age...
>
>
>And, I can get this without jhanson being logged in.  Now, can I get the list
>of everybody's "finger" even if they aren't logged in?


Nope.  The best I can suggest is to mail to `Postmaster' at the site you
want info for.  This is usually the SysAdmin, and will decide whether or
not to give you the data.

-mugsy
-- 
  Michael G. Bruce - mugsy@wpi.wpi.edu - Computer Science '94	      |
Sun System Adminstrator - Electrical/Computer Engineering Dept	   -- + --
          AK211 - Computational Fields Laboratory		      |
***---***---***---***---***---***---***---***---***---***--***	      |
From: Perry_Hutchison.Portland@xerox.com
Newsgroups: comp.unix.questions
Subject: Re: numbering lines in a text file
Date: 28 Sep 92 19:07:33 GMT

> Date: Sat, 26 Sep 92 19:01:51 EST
> From: sedrez@icad.puc-rio.br (Paulo Francisco Sedrez)
> Subject: Re: numbering lines in a text file

> > Date: Fri, 25 Sep 1992 17:51:30 PDT
> > From: Perry_Hutchison.Portland@xerox.com
> > Subject: Re: numbering lines in a text file

> >	grep -n "^" < inputfile > outputfile

> The most simple solution is
>	cat -n inputfile > outputfile

Well, that's what happens with an old-timer.  There was no -n switch
to cat back in 6th edition days, though I seem to recall that pr had
one.  (The SysV flavor of pr still has this capability, according to
the SunOS 4.1.1 man page.)  Yes, cat -n is better (presumably more
efficient, certainly more straightforward) if your system supports
it.  Another option, found by grepping the SunOS man pages, is nl(1).
Xref: sparky comp.unix.questions:11767 comp.unix.sys5.r3:17
From: hausler@aldetec.oz.au (Graham Hausler)
Newsgroups: comp.unix.questions,comp.unix.sys5.r3
Subject: SUMMARY: EOF detection in pipes
Date: 2 Oct 92 08:13:04 GMT
Organization: Aldetec Pty Ltd, Perth West Australia

The replies addressed both problems ...

1) Line-buffering etc.
     Pipes default to block buffering (as opposed to tty line buffering)
     hence if different/no buffering is required, use the setvbuf() call.
     ( I haven't tested this but a few replies mentioned using it )

2) Process termination/ pipe cleanups.
	Ensure that each child only keeps open the pipe it reads/writes to -
    it must explicitly close the 'other' side that it is not using. Any
    parent process not involved in the piping must close both pipes if
    it creates the pipes for its children. Failure to do this will 'hang'
    your processing stream as the system will not remove the pipes at the
    desired time....


Thanks to all who responded. 
Graham Hausler

-- 
Internet:   hausler@aldetec.oz.au      --> GEMCO, Perth, Australia.
From: mrh01%dohep1%ALBNYDH2.bitnet@uacsc2.albany.edu
Newsgroups: comp.unix.questions
Subject: Please Cancel
Date: 30 Sep 92 12:54:09 GMT

Please cancel my subscription to the unix listserv distribution.
My e-mail address is mrh01%dohep1@albnydh2.bitnet.  Thank you.

Newsgroups: comp.unix.questions
From: root@candle.uucp (Bruce Momjian)
Subject: Re: Search for pd-programm to change "pc-beep"
Organization: a consultant's basement
Date: Sat, 26 Sep 1992 19:13:26 GMT
X-Newsreader: Tin 1.1 PL5

: 	I am searching for a memory-resident programm that
: 	change the frequence from the beep in a pc.
: 	it must run under Interaktive Unix 3.0 rel 3.2
: 	and Interactive 2.2 rtel. 3.2.

There is a device driver on ftp.win.tue.nl with path:

	pub/sysvX86/speaker.shar.Z

that allows you to play tunes on your speaker.  Very nice.

-- 
Bruce Momjian                          |  830 Blythe Avenue
root%candle.uucp@bts.com               |  Drexel Hill, Pennsylvania 19026 
< If your life is a hard drive,      > |  (215) 353-9879(w)  853-3000(h)
< Christ can be your backup.         > |
Newsgroups: comp.unix.questions
From: andromed@cs.dal.ca (Mike Boschat)
Subject: Any Raster to Gif programs ? 
Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
Date: Sat, 26 Sep 1992 22:40:05 GMT


 Hi;

 I hope this is the right place to ask this, I am looking for a way to 
convert Raster images to Gif, does anyone know if there is an ftp site
with a program for this ?

 thank you..

							Mike
From: rns@npg-sd.SanDiegoCA.NCR.COM (Rick Schubert)
Newsgroups: comp.unix.questions
Subject: Re: Shell syntax error in Makefile
Date: 2 Oct 92 19:35:19 GMT
Organization: NCR Corp., Network Products - San Diego

In <32854@adm.brl.mil> AMARAL@fncrd0.fnal.gov (Jorge Luis M. do Amaral) writes:

>Hi,
>	I am using SunOS 4.1.2 and i am trying to compile spice for the sun.
>The problem is that I got error :

>	sh: syntax error at line 2: 'then ' unexpected 

I'm not sure what your problem is, but I think that shell constructs in
makefiles are a BAD thing.  I usually have my SHELL environment variable
set to /somepath/csh, and `make' then chokes on Bourne shell constructs
in the makefile.  If I can't change the makefile, I have to run `make'
with my SHELL set to /bin/sh.  I think it's better to either
	1. embed the shell commands in a Bourne shell script and have your
	   makefile invoke the shell script
or
	2. Have the makefile invoke '/bin/sh -c "<shell commands>"

This eliminates the dependency on a shell environment variable.

By the way, I originally thought that was your problem, too, but then I
noticed that the error message is coming from "sh."  I assume that "sh"
is the Bourne shell, but if it's not, maybe that is your problem.

-- Rick Schubert (rick.schubert@SanDiegoCA.NCR.COM)
Newsgroups: comp.unix.questions
From: seaney@engr.wisc.edu
Subject: Where to get Nemeth's Scripts
Organization: Univ of Wisconsin Madison
Date: 30 Sep 92 10:34:55 CDT

 
Is there a ftp site to get the various scripts listed by 
Nemeth in 'Unix System Administration'?

Thanks,
Steve
Newsgroups: comp.unix.questions
From: grogers@slacvx.slac.stanford.edu (Greg Rogers)
Subject: UNIX to VMS keyboard map?
Reply-To: grogers@slacvx.slac.stanford.edu (Greg Rogers)
Organization: Stanford Linear Accelerator Center
Date: Thu, 1 Oct 1992 22:43:35 GMT

Hi All,

Let me appologise in advance if this post does not belong in this newsgroup.
If this is the case, could you please suggest where I might post this.

My company has orderd some NCD Xserver terminals with vt220 keybards.
These machines will be used off site.  Users will phone in, logon to a
UNIX machine, and run Xwindows.  From here, most users will want to open
a window to our VMS machine and this is where the problem is.

We apparently do not have a UNIX to VMS keyboard map.  When in VMS ( from
UNIX ), regular letters and numbers type correctly, but PF keys, control 
keys, Do, Find, Select, Replace, etc., do not.

My question is: Does there exist, or does anyone know how to create, a
UNIX to VMS keyboard map to solve the problem described above?

Please send all reponses via email as I have cross posted this to several
newsgroups and won't have time to peruse them all.

thank you,
Greg
From: collins@xerox.com (Anthony Collins)
Newsgroups: comp.unix.questions
Subject: Re: Shell syntax error in Makefile
Date: 2 Oct 92 17:50:30 GMT
Reply-To: collins@xerox.com
Organization: Xerox Corporation, El Segundo CA

In article 32854@adm.brl.mil, AMARAL@fncrd0.fnal.gov (Jorge Luis M. do Amaral) writes:
> Hi,
> 	I am using SunOS 4.1.2 and i am trying to compile spice for the sun.
> The problem is that I got error :
> 
> 	sh: syntax error at line 2: 'then ' unexpected 
> 
> 	and the error is in this piece of the make source :
> 	in the first "if"
> $(OBJLIB_DIR)/${LIBRARY}.a: $(PARALLEL) ${COBJS}
> 	echo "Doing ${LIBRARY}.a" ;				              \
> 	@if test -r "$@"; then						      \
> 		echo $(AR) cr$(ARLOCAL) $(LIB_TARGET) $?;		      \
> 		$(AR) cr$(ARLOCAL) $(LIB_TARGET) $? > /dev/null;	      \
> 	else								      \
> 		echo $(AR) cq$(ARLOCAL) $(LIB_TARGET) $(COBJS);		      \
> 		$(AR) cq$(ARLOCAL) $(LIB_TARGET) $(COBJS) > /dev/null;	      \
> 	fi;								      \
> 	exit 0
> 	$(RANLIB) $(LIB_TARGET) > /dev/null
> 	if test "$(CLEANASYOUGO)" = "true"; then			      \
> 		echo rm -f $(COBJS);					      \
> 		rm -f $(COBJS);						      \
>  	fi;								      \
> 	exit 0
> 
> Then I tried to a backslack after the ";" in the fist if , because
> I was thinking that the error was because i didn't put the backslash 
> after the test comand, and so the shell wasn't able to recognize
> the then statement. 
> 
> When I put the "\" I got the message :
> sh: syntax error at line 5 : else unexpected.
> 
> My opinion is that the problem will be solved if i put the correct sequence
> of ";" and "\".However I tried lot of possibilities and all failed.
> Any suggestions ?
> 
> 			-- Jorge (amaral@fnacp.fnal.gov)


Jorge,

I think your problem is the backslash that you have after the first echo statement in your makefile.  

$(OBJLIB_DIR)/${LIBRARY}.a: $(PARALLEL) ${COBJS}
	echo "Doing ${LIBRARY}.a" ;				              \
                                                                              ^^
	@if test -r "$@"; then						      \

Your if statement starts with a '@' character.  '@' is only understood by make, not by the shell (at least not at the beginning of a command like you have it).  The purpose of the backslash in a makefile is to append a bunch of different lines together and pass them as one command to the shell.  By putting a backslash after the first echo, you are appending your if statement to the echo statement and passing the whole thing to the shell; make never sees the '@' character, and the shell doesn't know what to







 do with it.  Try removing the backslash from the echo statement and I believe that will solve your problem.

Tony
From: actize@garnet.berkeley.edu ()
Newsgroups: comp.unix.questions
Subject: TCP server
Date: 29 Sep 1992 01:28:45 GMT
Organization: University of California, Berkeley
Distribution: ba
NNTP-Posting-Host: garnet.berkeley.edu
Summary: questions about how to write

Hello Netlanders!

I am writing a server to put on my home directory.  I am able to extract my 
Internet address ( gethostbyname() call ).  This address refers to the machine 
I'm on, and not my home directory.  The problem is how do I establish a 
SERV_TCP_PORT ( server tcp port ) .  Is this the getservbyname() call ?  If 
this call is succesful, how does this identify the server on my home directory 
and not other processes ?

PLEASE ADVISE.	RESPOND TO THIS ACCOUNT ONLY
David Rapoport		actize@garnet.berkeley.edu
From: rickert@mp.cs.niu.edu (Neil Rickert)
Subject: Re: Problem with hostnames after subnetting....Help!
Organization: Northern Illinois University
Date: Fri, 2 Oct 1992 04:51:54 GMT

In article <1agb7fINNgur@unix1.cc.uop.edu> jmiller@uop.edu (James Miller) writes:
>Some how in the switch something has been configured wrong, for many
>machines still recognize us as "uop.uop.edu" (including some on the
>local net). Also, mail to uop.cs.uop.edu or uop.edu (an aliased version
>of the same), bounces about 50% of the time.

It appears that your sendmail is properly configured.  However your
nameservers have problems.  The server at 138.9.1.1 has a CNAME
record for UOP.EDU and that is WRONG.  All SOA, NS and MX records
which point to UOP.CS.UOP.EDU must name it as UOP.CS.UOP.EDU, and
not as the old name.  However you should retain an A record for
the old name of UOP.UOP.EDU.

Newsgroups: comp.unix.questions
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:31 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>
From: mbarkah@slate.mines.colorado.edu (Ade Barkah)
Newsgroups: comp.unix.questions
Subject: Re: Logon detection
Date: 29 Sep 92 18:53:26 GMT
Organization: Colorado School of Mines

weigand@pecan.cns.udel.edu (Steve Weigand) writes:

: >Try man utmp.  Then write a C program that opens utmp, checking for
: >new people logged on, in an infinite loop.  Note that if you want the
: >"*INSTANT* they logon!!!!" your program will take up some noticeable
: >amount of processor time, and will do lots of utmp accesses.
: >----------------------------------------------------------------------------
: >Howard C. Huang                                             hhuang@mitre.org
: 
: You've hit the nail right on the head with that one. I created the proposed
: utmp watching program already.

Seems to me (if you have root access) you could just rewrite
/usr/sbin/login (or whereever your login file is) and add
a simple little system() call inside it to notify you. That's
assuming you have the source codes, that is. 

-Ade.
-- 
Internet  : mbarkah@slate.mines.colorado.edu    (NeXT Mailable)
CompuServe: 74160,3404
From: kevin@sherman.pas.rochester.edu (kevin mcfadden)
Newsgroups: comp.unix.questions
Subject: .logout GIF display problems
Date: 2 Oct 92 12:48:21 GMT
Distribution: na
Organization: University of Rochester

Does anyone out there happen to know why, when I (or anyone else for that
matter, although it depends sometimes on the GIF itself) display a GIF
file after I logout, the colormap becomes black on black, which
makes it difficult for the next person to login?  Some gif
files don't do this, but when it does happen it happens on a Sparc IPX,
but not on an IPC, 1+, or a sun3.  The program that we use to display
these is called (I think) "gif", but all it does is display the gif
file, nothing fancy.  Also, the IPC's react funny to gifs displayed.
They have their colormaps transformed (ie. black -> white).

If no one knows of a solution to the above problem, how about a 
command that restores the colormap to black on white?


Thanks in advance,
Newsgroups: comp.unix.questions
From: zmbenhal@netcom.com (Zeyd M. Ben-Halim)
Subject: sgtty emulation using termios
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Wed, 30 Sep 1992 05:32:33 GMT

Has anybody written a sgtty emulation  package using termios?

Zeyd
Newsgroups: comp.unix.questions
From: clin@eng.umd.edu (Charles Lin)
Subject: Anybody use -S option wth xterms (was "Help with X and UNIX needed")
Date: Thu, 01 Oct 92 22:19:23 GMT
Organization: College of Engineering, University of Maryland, College Park
Reply-To: clin@eng.umd.edu (Charles C. Lin)

    My previous post ("Help with X and UNIX") asked the following
question.  Is it possible to have a program which will create
windows (as an independent "C-shell") and then issue commands
to that window as if you were actually typing the command?

    I was told that one possible solution to this problem had
to do with creating a pseudoterminal (which I had never heard
of before).  To do so, there is a -S option for X terminals
(i.e. the window that pops up with a shell -- xterm's).
As I understand it, you type in

          xterm -Sp13

   where p1 is the last two "letters" of a pty or a psuedo
terminal, and 3 is a "file descriptor" which one can refer
to that terminal.  So, if you look in /dev, you will see the
available "devices" that UNIX has, and there is a whole bunch
of them with the pty prefix.  So, presumably, the p1 would refer
to ptyp1.

   The only problem I am getting is that the xterm doesn't show
up.  It just hangs.   I would expect that the window should pop
up.  Now, xterm by itself works, so there's no problem with the
command.

   Or someone could help me with the -e option on xterms.  It
seems to have this annoying feature.  The window pops up, it
runs the command with the -e feature, and then it dies.  Is there
any sensible way to keep this window around?  I have already tried
putting the & (as in xterm -e ls &) and it still goes away
after completion.  It seems like a really silly thing for
it to do.  I would prefer that it just ran, then sit there
doing nothing when it is done.

   E-mail responses to clin@eng.umd.edu   

--
Charles Lin
clin@eng.umd.edu
From: richard@crowded-house.den.mmc.com (Richard Armstrong)
Newsgroups: comp.unix.questions
Subject: Re: curses problem: memory fault
Date: 6 Oct 92 01:31:14 GMT
Organization: Martin Marietta

Don't mix the standard libraries with the curses libriaries. Your
offending line in your curses program is the printf.


-- 
My company never said any of this... I didn't either.
Richard Armstrong, Software Engineer, Martin Marietta
Email->>>> richard@crowded-house.den.mmc.com <<<<-Email 
Newsgroups: comp.unix.questions
From: Eric C. Garrison <ericg@sopwith.ucs.indiana.edu>
Subject: Executing 'screen' utility automatically in .login
Organization: Indiana University
Date: Mon, 28 Sep 1992 16:03:46 GMT
X-Mailer: ELM [version 2.3 PL11]


Hello,

I use the 'screen' utility to detach and resume sessions when
moving from terminal to terminal, and I'd like to be able to
put:

screen -d
screen -R

at the end of my .login file so that I'd kill any existant screens
and resume on my current login automatically.

However, if I put those lines at the end of my .login, the
prompt and so on don't get set up in the created screen.  A friend
of mine uses bash and merely uses the 'set -a' command to get all
variables exported, but tcsh seems not to have such a beast.

Does anyone have an idea as to how to do this?

Eric

-- 
Eric Chris Garrison			      UCS Support Center
ericg@ucs.indiana.edu			      Indiana University
From: djbpitt+@pitt.edu (David J Birnbaum)
Newsgroups: comp.unix.questions
Subject: Re: How to uncompress "tar-z" (NOT tar.Z) files?
Keywords: tar tar-z archive uncompress decompress
Date: 1 Oct 92 11:30:10 GMT
Organization: University of Pittsburgh

In article <1992Oct1.042919.24260@cs.yale.edu>
starr-daniel@CS.YALE.EDU (Daniel Starr) writes:

>I have acquired booz.tar-z from oak.oakland.edu and am at a loss for how
>to convert it into working condition.

This _is_ a *.tar.Z file; you have to rename it to booz.tar.Z and then
uncompress and untar it.

Now: can anyone explain why *.tar.Z files wind up on archives with
*.tar-z names? My OS experience is pretty limited; is it because some
systems have trouble with filenames that have two dots in them?

Thanks,

David

-- 
Professor David J. Birnbaum         djbpitt+@pitt.edu [Internet]
The Royal York Apartments, #802     djbpitt@pittvms   [Bitnet]
3955 Bigelow Boulevard              voice: 1-412-687-4653
Pittsburgh, PA  15123  USA          fax:   1-412-624-9714