zsh-users
 help / color / mirror / code / Atom feed
From: Vardhan Varma <vardhan@linux.vsnl.net.in>
To: Timothy J Luoma <luomat@peak.org>
Cc: Robert Stone <rstone@accesscom.com>, zsh-users@math.gatech.edu
Subject: Re: kill and pid files
Date: Thu, 19 Jun 1997 10:53:53 +0000 (   )	[thread overview]
Message-ID: <Pine.LNX.3.91.970619105249.5002B-100000@linux> (raw)
In-Reply-To: <Pine.NXT.3.96.970618161237.19016A-100000@cc344191-a.ewndsr1.nj.home.com>



On Wed, 18 Jun 1997, Timothy J Luoma wrote:

> On Wed, 18 Jun 1997, Robert Stone wrote:
> 
> > 	Is there any reason kill should not take a filename as an
> > argument?  i.e. if the job specification is not a legal job name, or a
> > legal pid, why not try to open a file with that name and see if it's
> > first line is a valid pid?
> 
> well, I don't have the file part, but I use this
> 
> pid () {
> 
> for i in $*
> do
>         echo `/bin/ps -auxwww | grep -v grep |
>         grep -w $i | awk '{print $2}' | tr -s '\012' ' '`
>  
> done
> 
> }
> 
> and then use it for something like
> 
> kill -HUP `pid sendmail`
> 

	thankfully i've a pidof on my linux box, so i can just say
	kill -9 `pidof doit`
	try it on you box who knows.....


  parent reply	other threads:[~1997-06-19  6:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-18  7:25 Robert Stone
1997-06-18 20:16 ` Timothy J Luoma
1997-06-19  6:42   ` Zoltan Hidvegi
1997-06-19 12:19     ` Matt Welland
1997-06-21 15:07     ` Timothy J. Luoma
1997-06-19 10:53   ` Vardhan Varma [this message]
1997-06-18 13:05 Wez Furlong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.3.91.970619105249.5002B-100000@linux \
    --to=vardhan@linux.vsnl.net.in \
    --cc=luomat@peak.org \
    --cc=parsec@giasdl01.vsnl.net.in \
    --cc=rstone@accesscom.com \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).