From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4541 invoked by alias); 31 May 2002 02:11:30 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 4520 invoked from network); 31 May 2002 02:11:28 -0000 Received: from unknown (HELO c003.snv.cp.net) (209.228.32.218) by sources.redhat.com with SMTP; 31 May 2002 02:11:28 -0000 Received: (cpmta 13369 invoked from network); 30 May 2002 19:11:27 -0700 Received: from 64.192.249.121 (HELO ?192.168.0.20?) by smtp.telocity.com (209.228.32.218) with SMTP; 30 May 2002 19:11:27 -0700 X-Sent: 31 May 2002 02:11:27 GMT User-Agent: Microsoft-Entourage/10.0.0.1331 Date: Fri, 31 May 2002 04:20:00 -0000 Subject: Re: Getting a process list from perl From: Joseph Annino To: Chris January , cygwin Message-ID: In-Reply-To: <005801c2076f$168c8f70$0100a8c0@advent02> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-SW-Source: 2002-05/txt/msg01920.txt.bz2 Thanks for that. I'll look forward to having /proc around, and the hopefully the Proc modules for perl will be updated shortly after to support Cygwin's version of /proc. Yes everyone, I know about ps, but parsing ps puts you in a rather system dependant nightmare, and ps is columnar so sometimes it truncates data you might need. I have O'Reilly's Perl for Sys Admins which has a nice little chapter about process management. Anyhow, ps is there in a pinch. Thanks. On 5/29/02 8:15 PM, "Chris January" wrote: >> Well I solved my own problem. When in doupt, upgrade. Going to the > newest >> version of rsync has solved my slowness problems so far. My perl signal >> handler that kills all the scripts children is able to gracefully kill an >> rsync that is taking too long, returning control back to the script so it >> can clean up and finish somewhere outside the signal handler. >> >> I am still curious about getting process listings, since I will have use > for >> that still. > Wait for Cygwin 1.3.11 when you will be able to get a directory listing of > /proc. The all-numerical entries in that directory are process IDs. > > Regards > Chris > > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/