HDTenEightyP/NetNews huggingface dataset:
From: sm86+@andrew.cmu.edu (Stefan Monnier)
Newsgroups: comp.unix.questions
Subject: background
Date: 12 Sep 92 00:53:09 GMT
Article-I.D.: andrew.MegOzpO00awLI4C2B9
Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA


I have 2 questions:

- I tried to use 'at' and it seemed to accept my command:
	a 'ls /usr/spool/at' showed that the command launched
	had been processed. But, that command has never
	been executed at the specified time (and as far as I know, 
	it has never been executed)

- I'd like to start a process and then logout but with the process 
	still running ! How can I do it ?

	
	Stefan Monnier

-----------------------------------------------------
-- On the average, people seem to be acting normal --
-----------------------------------------------------
From: navarra@casbah.acns.nwu.edu (John Navarra)
Newsgroups: comp.unix.questions
Subject: Re: user command to recover deleted file ?
Date: 15 Sep 92 02:46:07 GMT
Organization: Northwestern University, Evanston Illinois.

In article <BuLEvr.LGI@unix.amherst.edu> twpierce@unix.amherst.edu (Tim Pierce) writes:
>In article <1992Sep14.211851.6952@news.acns.nwu.edu> navarra@casbah.acns.nwu.edu (John Navarra) writes:
>
>>	Finally, without arguing the merits of various file preserving
>>methods (where have you been Kamens!? ;-) one very simple thing to do
>>it alias the rm command to mv all files to a 'wastebasket' or 'tmp'
>>directory and then later clean that directory out manually or with
>>a cron job.
>
>As it was pointed out to me when I brought this up, globally aliasing
>rm to something clever in order to "protect" the user is an extremely
>bad idea.  It sets them up to expect rm to act a certain way, and if
>they are dropped into a shell without aliasing (e.g. the Bourne
>shell), or into another Unix system which is not administered in the
>same way, all of your pampering is for nought when they "rm
>final-draft-thesis".
>
	Yeah yeah, I said I didn't want to get into this discussion 
(but that was just a clever ploy to generate a discussion ;-) I have
had this debate at least twice with Kamens and we see things a bit
differently. I say being a bit pampered is a HELL of a lot better
than losing a file! I use a special rm function and I have never found
myself removing files that I didn't want removed. And even if I did, 
they are backed up on tape. One of the main tenets of UNIX is the 
freedom to customize your environment. If that includes altering a 
command to do things the way you want, then so be it. How do you
think so many unix commands got started in the first place?
	I agree that many new users shouldn't be given altered commands
but once you know enough to ask about a command, you should have the
opportunity to change how it works. The philosophy you suggest, when
extrapolated, would call for use of only those utilities available on
EVERY UNIX PLATFORM. I certainly don't want to limit myself to that. 

-tms


-- 
You can get further with a kind word | You can get further with a kind word
and a gun than a kind word alone.    | and a phaser than a kind word and a gun.
          --al capone                |           -- John Navarra
=======From the Lab of the MaD ScIenTIst....navarra@casbah.acns.nwu.edu========
Newsgroups: comp.unix.questions
From: dattier@ddsw1.mcs.com (David W. Tamkin)
Subject: Re: SED GURUS: Some Newline Questions
Keywords: sed newline
Organization: Contributor Account at ddsw1, Chicago, Illinois  60657
Date: Sun, 13 Sep 1992 03:12:21 GMT

fester@mamushka.ncsu.edu wrote in <1992Sep10.230603.1267@ncsu.edu>:

| Hi sed people.  For a project I'm working on, I'm trying to
| figure out how to insert newlines in sed.  Here's the scenario:
| 
| 1)  In the input text, lines ending with a semicolon need to have 
|     a right bracket and newline inserted:

What you show there are braces; the right bracket is "]".

| --before--
| start
| { THIS IS LINE 1;
| { THIS IS LINE 2;
| end
| 
| --after--
| start
| 
| { THIS IS LINE 1; }
| 
| { THIS IS LINE 2; }
| 
| end
| 
| I've got this much:
| 
|    sed -e 's/;$/; \}/'
|                   ^necessary?
|   
| Adding \n, \\n, or \\\n was fruitless.

You're adding a space and a right brace there.  (No, the right brace doesn't
need escaping inside a text string.)  Do you want a space as well?  I'll
assume not.

There are at least four ways to go:

# This assumes that the hold space, which starts out empty, will stay empty:
sed '/;$/{
G
s/$/}/
}'

[Append a newline and the hold space and then place a right brace at the
right anchor.]

# This one must be strong-quoted or placed in a script file for sed -f:
sed 's/;$/&\
/'

[(Well, it could work weak-quoted if you use two backslashes.)  Place a
newline and a right brace at the right anchor.]

# The same cautions to protect the trailing backslash apply to this one:
sed '/;$/a\
}'
[Output a line consisting of a right brace after you finish with the line
being processed.]

# If you don't need the hold space for anything else, keep a brace there:
sed '1{
h
s/.*/}/
x
}
/;$/G'
[Put a right brace into the hold space and append it (with a separating
newline) to every line otherwise ending in a semicolon.]

| 2)  Next, I need to delete a newline from text:

You need to use N to get both lines (with a separating embedded newline) into
the pattern space at once: it's all in The Ferkakte Manual.  Then you can
search for an embedded newline with \n (unfortunately, \n doesn't work in
replacement strings).

To change every occurrence of 

pattern1             to          pattern1 pattern2
pattern2

you can do something like this (just trust me):

sed 'N
s/\(pattern1\)\n\(pattern2\)/\1 \2/
$ b
P
D'

David W. Tamkin   Box 59297   Northtown Station, Illinois  60659-0297
dattier@ddsw1.mcs.com    CompuServe: 73720,1570    MCI Mail: 426-1818
From: robichau@IRO.UMontreal.CA (Benoit Robichaud)
Newsgroups: comp.unix.questions
Subject: plain mail and carbone copy
Date: 9 Sep 92 16:27:09 GMT
Reply-To: robichau@IRO.UMontreal.CA (Benoit Robichaud)
Organization: Universite de Montreal

Is it true that there is no such way that I can't
automaticaly put my name on the Cc (carbone-copy)
list? That is, I have to set the "askcc" variable
in the ".mailrc" file and always put my name in 
the list after the EOF signal? If there a way to
avoid it (& then do it automaticaly) please let
me know .

(may be it is an another FAQ)

thanks
Benoit
Xref: sparky comp.unix.questions:10949 comp.windows.x.apps:997
From: simon@lia.di.epfl.ch (Simon Leinen)
Newsgroups: comp.unix.questions,comp.windows.x.apps
Subject: Re: backward MANPATH ?
Date: 11 Sep 92 08:57:58 GMT
Followup-To: comp.unix.questions
Organization: DI-LIA -- Ecole Polytechnique Federale de Lausanne
In-reply-to: ruck@zeta.ee.ufl.edu's message of 9 Sep 92 19:17:51 GMT
X-Md4-Signature: dc1b27c44d10589613296f93f90e08ef

SunOS man should search the MANPATH directories in the correct order
(left to right) - I never noticed any problems with that.

"xman" (as of X11R5 and (all?) earlier versions) has a bug which
rearranges the MANPATH in a deterministic but difficult to figure out
way (it reverses everything beyond the first entry or something like
that).  A bug report has been sent to MIT a year ago so maybe the
problem will disappear in X11R6.  If you're desperate, apply the
following patch to your xman sources and recompile (no warranty etc.)
-- 
Simon.

RCS file: RCS/man.c,v
retrieving revision 1.1
diff -c -r1.1 man.c
*** /tmp/RCSAa21855     Sat Sep 14 19:29:53 1991
--- man.c       Sat Sep 14 19:29:46 1991
***************
*** 208,213 ****
--- 208,214 ----
        last->next = inner->next; /* Move it to directly follow local. */
        inner->next = local->next;
        local->next = inner;
+       local = inner;
        inner = last;           /* just so that we keep marching down the
                                   tree (this keeps us from looping). */
        }
Newsgroups: comp.unix.questions
From: nms@saukh.relcom.msk.su (Nickolay Saukh)
Subject: Question: Stallion Technologies email address
Organization: Relcom Corp
X-Newsreader: Tin 1.1 PL5
Date: Sat, 5 Sep 1992 07:53:35 GMT

Do they still have it? If so, what is it?

Thanks
--
Nickolay Saukh
From: guru@camelot.bradley.edu (Jerry Whelan)
Newsgroups: comp.unix.questions
Subject: Re: .netrc entry for default ftp connects
Keywords: ftp netrc
Date: 12 Sep 92 21:54:44 GMT
Organization: The Smelly Ditch

In article <1992Sep12.184012.2519@lambda.msfc.nasa.gov> thigpen@lambda.msfc.nasa.gov (Keith Thigpen) writes:
-} .netrc works fine if I specify the machine that I want to contact. Often, tho,
-} I want to jump out on the net and use anonymous ftp.

Well, then use this script (suitably modified for your situation) in
place of ftp:


#!/bin/sh
#
#	mftp   hostname
#
#	This script will take care of adding it to your .netrc
#	for anonymous ftp.
#
#

# Check to see if this host is alread in the .netrc file
egrep "machine *$1" $HOME/.netrc > /dev/null 2>&1

if [ $? != 0 ]
then

# The host is not there so install the defaults

	 /bin/echo machine $1\\nlogin ftp\\npassword \
$LOGNAME@camelot.bradley.edu >> $HOME/.netrc
	/bin/echo macdef init\\nbinary\\nprompt\\nhash\\n\\n >> $HOME/.netrc
fi

# In case you ever put any real passwords in the .netrc file
# you don't want someone else to look at it
/bin/chmod 600 $HOME/.netrc

# Run ftp in verbose mode to the destined site
ftp -v $1

-------------------------------------------------------------------------------
``written by a drunken insane pathological liar''        guru@stasi.bradley.edu
Newsgroups: comp.unix.questions
From: kherron@ms.uky.edu (Kenneth Herron)
Subject: Re: at(1) command fails
Distribution: usa
Date: Thu, 10 Sep 1992 19:25:38 GMT
Organization: University Of Kentucky, Dept. of Math Sciences

sfs@cbnewsm.cb.att.com (salvatore.savastano) writes:

>I use the at(1) command to schedule up to about 1000 jobs at 1 minute intervals

>occasionally at(1) starts spitting out an extra message 
>with each job scheduled and continues to do so until the end.  
>	...
>	at: error in message send
>	job 716077800.a at Wed Sep  9 16:30:00 1992
>	at: error in message send
>	job 716077860.a at Wed Sep  9 16:31:00 1992
>	at: error in message send

At and crontab use a FIFO to communicate with the cron daemon.  Each
message is 26 bytes or more, depending on how a struct gets padded.  
The "error in message send" message is printed if the write() into the 
FIFO fails, suggesting that you're submitting enough jobs at once to 
fill up the FIFO.

The cheap solution is not to submit so many jobs at once.  However,
my guess is there's a simpler way to launch these processes without
queuing up so many at jobs.
-- 
Kenneth Herron                                           kherron@ms.uky.edu
University of Kentucky                                      +1 606 257 2975
Department of Mathematics           "Thanks to the magic of the slow-motion 
camera, we can now show you how ugly the inside of someone's mouth can be."
From: udo@umunk.GUN.de (Udo Munk)
Newsgroups: comp.unix.questions
Subject: Re: background
Date: 14 Sep 92 03:02:20 GMT
Organization: U. Munk's private BBS
X-Newsreader: Tin 1.1 PL4

sm86+@andrew.cmu.edu (Stefan Monnier) writes:
: 
: I have 2 questions:
: 
: - I tried to use 'at' and it seemed to accept my command:
: 	a 'ls /usr/spool/at' showed that the command launched
: 	had been processed. But, that command has never
: 	been executed at the specified time (and as far as I know, 
: 	it has never been executed)

Some time after the time, where your command should be executed,
look again into /usr/spool/at. If the file crated by your at command
is still there, then atrun isn't executed from cron. The command
atrun should be executed every 5 minutes from cron, to excute the
spooled batches.
If the batch file in /usr/spool/at is gone, something may be wrong
with your command, so that it can't be executed.

: - I'd like to start a process and then logout but with the process 
: 	still running ! How can I do it ?

nohup my_program &
--
Udo Munk     | voice:      +49 2131 275348             | uucp: +49 2131 278869
Oberstr. 21  | mail :      udo@umunk.GUN.de            |     2400/1200/300 8N1
4040 Neuss 1 | ...!{mcshh,smurf,unido}!easix!umunk!udo | MYNAME=bbsuser
Fed. Rep. of | CompuServe: 100021,2515                 | login: uucp
Germany      | first get /usr/spool/uucppublic/info    | pwd:   public
From: kkress@phent.UUCP (Kenneth R. Kress)
Newsgroups: comp.unix.questions
Subject: sed and linefeeds
Date: 12 Sep 92 05:53:28 GMT
Organization: That's Entertainment BBS -- Glenside, Pa.

fester@mamushka.ncsu.edu (Cousin It) writes:
> Date: Thu, 10 Sep 1992 23:06:03 GMT
> For a project I'm working on, I'm trying to
> figure out how to insert newlines in sed. ...
> although I did determine that the "N"
> might be necessary.  Here's the scenario:
> 1)  In the input text, lines ending with a semicolon need to have 
>     a right bracket and newline inserted:
> --before--
> start
> { THIS IS LINE 1;
> { THIS IS LINE 2;
> end
> --after--
> start
> 
> { THIS IS LINE 1; }
> 
> { THIS IS LINE 2; }
> 
> end
> 2)  Next, I need to delete a newline from text:
> --before--
> start
> TITLE 1 | |
> subtopic
> 
> end
> 
> --after--
> start
> TITLE 1 | | subtopic
> 
> end
> Any ideas? 
  
 I don't pretend to be an expert, but I came up with a shell
 script using sed and tr that does what you say you want.
  It requires you be able to pick a symbol that is not
 anywhere in your document. I used the at sign in my script.
 
 The script:
 
 sed 's/\;$/\; \}\@/
 	/\| \|/N
 	s/\n/ /' |
 tr "@" "\n"
 
  tr turns the at signs into new lines (I couldn't get
 sed to do it either, although I'm pretty sure the MKS sed
 I have at work will insert newlines.)
  As you guessed, the N is needed to put both lines into 
 the work area and the substitute command replaces the newline
 with a space.
  An awk script to do the same chores:
 
awk '{		
	if ($0 ~ /;$/) {		# if the line ends with semi-colon
		print $0" \}\n";	# append bracket and linefeed
		next }			# fetch next input line
	if ($0 ~ /\| \|/) {		# if line contains | symbols
		printf ("%s ",$0);	# print without a linefeed
		next }			# fetch next input line
 	print }'			# print the rest of the lines
------
===================================================================
	Ken Kress, Glenside, PA * dsinc!phent!kkress 
The moment one commits oneself then Providence moves too.
			W.H. Murray, "Scottish Himalayan Expedition
-------------------------------------------------------------------
From: shibuya@mailhost.bl.cad.slb.com (Hiroto Shibuya)
Newsgroups: comp.unix.questions
Subject: GNU make 3.62 VPATH question
Date: 15 Sep 92 17:23:20 GMT
Reply-To: shibuya@mailhost.bl.cad.slb.com
Distribution: comp
Organization: Schlumberger Technologies CAD/CAM Division

Didn't get any response on gnu.util.bugs so try it here.  I don't
think it is Unix question but can't see anywhere more approprite.
Question concerning VPATH, vpath with GNU make 3.62 on
DECstation/Ultrix 4.2.

Following is what I want to do.

	./old/foo
             /foo.c
	     /foo.o
	     /file1.c
             /file1.o
	     /file2.c
	     /file2.o
             /makefile
		
	./new/file1.c
	     /makefile

There is directory ./old and ./new.  ./old contains all old sources
and objects and exectables.  In the separate directory ./new, I want
to copy a file from old directory, modify it and create new "foo" with
the new module.  So I want make to compile new/file1.c and link new/foo
out of old/foo.c, new/file1.o and old/file.o.  I tried the following
simple makefile.

	#
	# test VPATH
	#
	VPATH = ../old

	OBJ = foo.o file1.o file2.o

	foo : $(OBJ)
		cc -o $@ $^

With this make file, if I say make, it simply says,

	gmake: `../old/foo' is up to date.

So I specify abosolute path for the target foo.
		
	VPATH = ../old
	FOO = /xx/xx/xx/new/foo

	OBJ = foo.o file1.o file2.o

	$(FOO) : $(OBJ)
		cc -o $(FOO) $^

Then it make foo as follows.

	cc -o /xx/xx/xx/new/foo ../old/main.o \
	  ../old/file1.o ../old/file2.o

ignoring the new/file1.c. 

If I say "gmake file1.o", it says  

	gmake: `../old/file1.o' is up to date.

If I say "make file1.o" then it compiles file1.c. After new/file1.o is
created.  Then if I say "gmake", it links with the new object.

	cc -o /xx/xx/xx/new/foo ../old/main.o \
	  file1.o ../old/file2.o

It seems that after Gmake finds the target in ../old, it doesn't go
looking for the source in the current directory.  What am I doing
wrong? Or am I misunderstanding VPATH?
--
				Hiroto Shibuya
			
				Schlumberger Technologies 
				CAD/CAM Division
From: wb@tornado.kodak.com (wb@tornado.kodak.com)
Subject: WANTED: XDR Libraries for MSDOS
Keywords: XDR, MSDOS, RPCGEN
Organization: Digital Equipment Corp. (Telstar), Rochester, N.Y. 14653
Date: Thu, 10 Sep 1992 20:55:36 GMT

POSTED FOR A COLLEAGUE(see sig)

I'm looking for a version of the XDR library for 386 based MSDOS machines.
My compiler is Borland C/C++ 3.1 and I'm running Windows 3.1, under MSDOS 5.0.
So far I've had no luck tracking this down, so if you know where the library
exists in either executable or source form (preferred), please contact me.

I find this strange, especially as the XDR library was released to the
public domain by Sun MicroSystems way back in 1987.

I've tried several places so far: MKS, Greenleaf, and Austin Code Works.
BTW, Austin's phone has been disconnected.

Please send responses directly to lvw@tornado.kodak.com
OR post directly to this newsgroup.

Thanks!

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Lyndon C. VanWagner				Eastman Kodak Company
Contract Programmer				Kodak Apparatus Division
Analysts International Corp.			Bldg 11, MS 306004
205 St. Paul Street				901 Elmgrove Road
Rochester, NY 14604				Rochester, NY 14653-6004
(716) 325-6640					(716) 726-0147
===========================================================================
		Inet: lvw@tardis, lvw@tornado.kodak.com
===========================================================================
Excuse me, but why does God need a starship?
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++





Newsgroups: comp.unix.questions
From: navarra@casbah.acns.nwu.edu (John Navarra)
Subject: Re: user command to recover deleted file ?
Organization: Northwestern University, Evanston Illinois.
Date: Tue, 15 Sep 1992 21:43:10 GMT

In article <BuLs32.CLy@unix.amherst.edu> twpierce@unix.amherst.edu (Tim Pierce) writes:
>
>You're saying two different things.  One is that new users shouldn't
>be given altered commands, and the second is that it's all right to
>pamper people.

	I was saying that I agree that new users should not be placed
in an environment where standard UNIX commands operate differently unless
the difference is COMPLETELY invisible to the user. However, I also said
that once you know how the command should work, UNIX philosophy dictates
that you should have the opportunity to be 'pampered' whether you do it
or rely on the system administrator. I disagree with the statement that
no one should use an aliased rm command, function, or program (or a 
program which operates like rm but is named differently) solely because
it is non-standard and that user may f*ck up when he finds himself on
a different machine. 


>Wouldn't.  It would call for non-over-reliance on utilities which are
>not available on a majority of Unix platforms, and whose sudden
>disappearance can be disastrous for the unexpecting user.
>
	Using your gun analogy -- just because you didn't know the
gun was loaded doesn't mean you are innocent. In other words (and
in this case I am speaking from the standpoint of experienced users),
if you screw up because you don't know how something works, it was your
fault for not checking beforehand; *especially* if you are expecting
a standard utility to work non-standardly! Obviously, new users should
not be put under this strain. But that doesn't mean I wouldn't rely
on utilities which are non-standard. I rely on them all the time!


-tms
 

-- 
You can get further with a kind word | You can get further with a kind word
and a gun than a kind word alone.    | and a phaser than a kind word and a gun.
          --al capone                |           -- John Navarra
=======From the Lab of the MaD ScIenTIst....navarra@casbah.acns.nwu.edu========
Newsgroups: comp.unix.questions,aus.comms,aus.wanted,aus.general,comp.misc
From: pjw@wacher.oz.au (Peter Williams)
Subject: WANTED: Info on translators. (EDIFACT + ANSI X12)
Organization: Wachers Pty Ltd
Date: Fri, 11 Sep 1992 02:58:42 GMT
Summary: Info needed about translators (EDIFACT + ANSI X12)
X-Newsreader: Tin 1.1 PL5



G'Day,

  I require some information about UNIX based translator products on the 
market.

  The translator needs to translate from EDIFACT formats and ANSI X12 formats
to programmable flat file formats, and vice versa.

  Unfortunately our internet address is not known outside Australia so Faxed
responses would be appreciated, inside Australia please mail me at the address
below.

Thanks in advance.


-- 
 ,-_|\      Peter Williams                    || "To know me is to love me" ||
/     \     Wachers Pty. Ltd.                 ||  E-Mail: pjw@wacher.oz.au  ||
\_,-._/<--- 2 Humphries Ln.                   ||   Phone: +61 2 570 3255    ||
     v      Hurstville, NSW, 2220, Australia  ||     Fax: +61 2 570 9247    ||
Newsgroups: comp.unix.questions
From: ellis@nova.gmi.edu (Stew Ellis)
Subject: Re: csh command line editing
Organization: GMI Engineering&Management Institute, Flint, MI
Date: Tue, 15 Sep 1992 12:04:25 GMT

tparker@music.scd.ucar.edu (Tom Parker) writes:

>In article <5049@balrog.ctron.com> geremia@ctron.com writes:
>>
>>	I have a Sun SPARCstation running sunos 4.1 unix.  Does anyone
>>know how to get command line editing to work.  Also how about command
>>line history browse using the arrow keys????

>I use the 'mced' command to do this and am quite please with it.
>You can Use ARCHIE to find anonymous ftp locations that have 'mced'.
>--
>+--------------------------------------------------------------------+
>| Tom Parker             |  National Center for Atmospheric Research |
>| tparker@ncar.ucar.edu  |  (303) 497-1227                           |
>+--------------------------------------------------------------------+

Get tcsh, bash, or zsh.  All have many features beyond csh or sh.  tcsh is
the most limited superset, because the others try to be supersets of both
csh and ksh.  Chances are someone else at your site has already installed
them on their workstations or on a server.

--
--                                                        ___________________
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.   /        / /  /  / /
  Flint, MI 48504      ellis@nova.gmi.edu              /________/ /  /  / /
Newsgroups: comp.unix.questions,comp.sources.wanted
From: av@omega.ssw.de (Andreas Vogel)
Subject: Re: Playing CD in workstation A, hearing it in B, Can I?
Date: Tue, 8 Sep 1992 19:34:54 GMT
Organization: Omega Softlab

In article <1992Sep07.133745.14531@dcc.uchile.cl> erodrigu@dcc.uchile.cl (Eduardo Rodriguez) writes:
>
>I want to play a CD in a device connected to some workstation A,
>but i want to hear it in other workstation B.
>  Is there an utility that do that?. Both workstation are Sun Sparc
>connected via Ethernet.
>

No way, sorry :-(( There are no cdrom drives (yet) which are able to read
audio data from the cd-rom (if my memory serves me right SGI uses a
hardware patched drive for doing that).
So you do have no chance to transmit any data from your local cd-rom drive
to any other host (except you have a really long speaker cable or the
workstations are in the same room -- just play it loud :-)))

>Thanks for any hint!

You're welcome,

-- 
Andreas Vogel                   Bahnhofstr. 13 / D-7300 Esslingen / Germany
				Voice:  +49-711/357613
				E-Mail: av@ssw.de
Newsgroups: comp.unix.questions