*BSD News Article 35848


Return to BSD News archive

Xref: sserve comp.unix.bsd:14899 comp.unix.programmer:20121 comp.unix.questions:55100 comp.unix.shell:17783
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!uchinews!vixen.cso.uiuc.edu!howland.reston.ans.net!wupost!crcnis1.unl.edu!s-cwis.unomaha.edu!corona!hwolfe
From: hwolfe@corona (Herb Wolfe)
Newsgroups: comp.unix.bsd,comp.unix.programmer,comp.unix.questions,comp.unix.shell
Subject: Re: <Q> Is there a script for ...?
Followup-To: comp.unix.bsd,comp.unix.programmer,comp.unix.questions,comp.unix.shell
Date: 15 Sep 1994 22:48:00 GMT
Organization: University of Nebraska Omaha
Lines: 41
Message-ID: <35aiv0$ra9@s-cwis.unomaha.edu>
References: <Pine.3.89.9409150511.A14429-0100000@worf.uwsp.edu>
NNTP-Posting-Host: hwolfe%@corona.unomaha.edu
X-Newsreader: TIN [version 1.2 PL2]

Peter Zuge (pzuge@worf.uwsp.edu) wrote:
:     
: BSD/386:

: I was wondering if there are some scripts for the following:
:    (I am pretty sure that someone else must have wanted these
:     at some time)

:   1) A script that will let a user re-edit the last command.  
:      Maybe grabbing it from history and using some editor to modify the 
:      command before executing it?  When creating scripts, I end up test-
:      ing parts of it out on the command line.  These command lines get 
:      pretty lengthy and I would like a way to "grab" it and simply change
:      a parameter then execute it again. ( Like DOSKEY or F3 in DOS? )

erm, up-arrow? ^p?

:   2) A script that will make it easy to kill numerous jobs.
:      ( I sometimes make some jim-dandy mistakes ) 
:      Coping four or five PIDs down correctly on the command line is
:      almost more than my typing skills can take.;-)

kill -9 %

:   3) A notify script that will tell me when a certain user logs in.
:      Maybe even notify me if a certain user logs onto a remote machine?

in your .login or .cshrc file, don't remember which, off the top of my
head... set watch (username tty username tty ... )
the tty can be the word 'any' if it doesn't matter where they login from.
as for logging onto a remote machine... that can be done, but it uses a
lot of resources from both machines. I'm not sure of the details, just
seen it mentioned.

herb

--
"Stay sharp, make good decisions" Louis in Ghostbusters II
"Been dazed and confused for so long it's not true" Led Zeppelin

hwolfe@corona.unomaha.edu