From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20635 invoked from network); 2 Sep 2003 13:47:15 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 2 Sep 2003 13:47:15 -0000 Received: (qmail 21388 invoked by alias); 2 Sep 2003 13:47:06 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19007 Received: (qmail 21365 invoked from network); 2 Sep 2003 13:47:06 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 2 Sep 2003 13:47:06 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.207.165.230] by sunsite.dk (MessageWall 1.0.8) with SMTP; 2 Sep 2003 13:47:5 -0000 Received: by cyberbuzz.gatech.edu (Postfix, from userid 20135) id E026E79439; Tue, 2 Sep 2003 09:30:22 -0400 (EDT) Date: Tue, 2 Sep 2003 09:30:22 -0400 From: Jason Price To: Zsh Subject: Re: Can Zsh do this for me? Message-ID: <20030902093022.A3001@redfish.gatech.edu> References: <20030902120846.GA1636@DervishD> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030902120846.GA1636@DervishD>; from raul@pleyades.net on Tue, Sep 02, 2003 at 02:08:46PM +0200 > BTW, I want to write a 'ps' command on my own because I don't > like the procps one available for Linux, nor the others out there, > and I think that with the zsh/stat module I could do it in a shell > script :))) Under solaris and debian linux, there's something called pkill(1) that will take a name, and kill it. BTW: if you're re-writing linux PS as a shell script to learn a lot of linux and zsh internals, go right ahead. If you're just annoyed by how it works, take a long look through the man page. It's amazingly powerful and flexable. It looks like you were using the BSD flavor of args. If you want SYSVish args, just use a hyphen. I.E.: 'ps -ef'. See the man page for more details than you probably want. ps. The only thing that competes with ls for number of options. Jason