From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Timo Aaltonen Newsgroups: gmane.os.tru64.managers Subject: SUMMARY anyone ported pgrep/pkill to tru64 Date: Thu, 06 Feb 2003 18:16:03 +0200 (EET) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Trace: main.gmane.org 1044548069 24542 80.91.224.249 (6 Feb 2003 16:14:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 6 Feb 2003 16:14:29 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18gofS-0006NI-00 for ; Thu, 06 Feb 2003 17:14:26 +0100 Original-Received: (qmail 1248 invoked by uid 5); 6 Feb 2003 16:16:17 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 1239 invoked by uid 49493); 6 Feb 2003 16:16:17 -0000 Original-Received: from tjaalton@cc.hut.fi by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-10.8/5.0):. Processed in 0.392474 secs); 06 Feb 2003 16:16:17 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 6 Feb 2003 16:16:16 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H9W002TKAIYJU@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 06 Feb 2003 11:16:16 -0500 (EST) Original-Received: from smtp-3.hut.fi (smtp-3.hut.fi [130.233.228.93]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTPS id <0H9W008HUAISTL@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 06 Feb 2003 11:16:06 -0500 (EST) Original-Received: from replicant.hut.fi (replicant.hut.fi [130.233.200.84]) by smtp-3.hut.fi (8.12.6/8.12.6) with ESMTP id h16GG30N028989 for ; Thu, 06 Feb 2003 18:16:03 +0200 In-reply-to: X-X-Sender: tjaalton@replicant.hut.fi Original-To: tru64-unix-managers@ornl.gov X-RAVMilter-Version: 8.4.2(snapshot 20021217) (smtp-3.hut.fi) Xref: main.gmane.org gmane.os.tru64.managers:3242 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3242 Hi, again I got many good answers. Rick Kelly suggested to try to port pkill from NetBSD, but it also relies on /proc and porting seems to be difficult (the Linux-version from procps-package is similar). Dr. Blinn sent a small script he uses for killing processes. Spider Boardman sent a link (http://users.rcn.com/spiderb/sec/skill.tar.gz) to a program. Bob Vickers sent a perl-script for interactively killing processes that match an expression. Mike pointed out that in 'kill' there are special process_ID:s (0, -1) for killing processes. Mark Deiss sent a link (http://www.networkcomputing.com/unixworld/grabbag/001.html) to a Perl widget (kp), that does have some similarities with pkill. and, the guy sitting next to me said he has done a perl-skript (kurkipotku.pl - "cranekick.pl" - as in Karate Kid...) that does pretty much the same as pkill, but it relies on the output from "ps" and the syntax is different, so it needs some tweaking. we could put it publicly available some day. On Thu, 6 Feb 2003, Timo Aaltonen wrote: > Hi > > Solaris and Linux has an übercool tool called pgrep(/pkill). It > is used to fetch information of running processes, and can be used, for > example, to kill all processes of a specific user. Tru64 doesn't have > this, and it is a pretty annoying flaw in it. It uses procfs, and > Tru64 has it although probably not as feature-filled as Solaris or Linux. > > So, has anyone tried to port it to Tru64, or is it even possible? Or has > anyone made a shell/perl-script to do the same job? > > > P.S. hint to Hompaq engineering - pgrep/pkill would be an kickass feature =) > > > t:T > _______________/Timo Aaltonen > Work: HUT-Computing Centre - UNIX, GSM +358-40-5549 618