From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22211 invoked by alias); 18 May 2004 17:02:02 -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 22180 invoked from network); 18 May 2004 17:02:00 -0000 Received: from unknown (HELO NUTMEG.CAM.ARTIMI.COM) (217.40.111.177) by sourceware.org with SMTP; 18 May 2004 17:02:00 -0000 Received: from mace ([192.168.1.25]) by NUTMEG.CAM.ARTIMI.COM with Microsoft SMTPSVC(6.0.3790.0); Tue, 18 May 2004 18:01:45 +0100 From: "Dave Korn" To: Subject: RE: Problems listing tasks under cygwin. Date: Tue, 18 May 2004 17:03:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <1084866742.40a9c0b605e6e@mail.municipia.com> Message-ID: X-OriginalArrivalTime: 18 May 2004 17:01:45.0663 (UTC) FILETIME=[CCF94CF0:01C43CF9] X-SW-Source: 2004-05/txt/msg00643.txt.bz2 > -----Original Message----- > From: cygwin-owner On Behalf Of alejandro.sanchez > Sent: 18 May 2004 08:52 > I have the following trouble, if I try to do a ps -aux I > obtain all the current > tasks running under cygwin, but sometimes the PID listed is > not the right one. You're lucky. My copy of cygwin ps doesn't understand the -aux flag set at all, because I don't have a user account named 'x' on my system. ps takes different flags on different systems, and "-aux" looks to me like you're expecting it to use the same options as solaris ps. It doesn't. "ps --help" for more. > However trying ps -ef I obtain the right PID of the task. I'm still amazed that you get anything but an error message from the first way you tried it. I want to see some cut-n-paste output from your command shell, because I think you probably haven't described the situation accurately. > Anyway if I'm trying to list the tasks under the user system > (with the same > privileges of root) runned out of cygwin, I see the > associated PID but I can't > kill the task, it says something like 'not such PID for the process'. Actually, SYSTEM has higher privileges in general than root. It may well be impossible to kill some tasks belonging to system because they may not allow full access even to users with admin rights. The error message may be misleading, and maybe it should be saying "Access denied". Or maybe not, because you didn't tell us anything about what tasks or what PIDs or exactly what output you're getting. Next time you get an error and want some help with it, I suggest you tell us what the error message actually was, rather than just some vague approximation to it. Saying "It says something like" comes across as if you implying "But I couldn't be bothered to make a proper note of it because I expect someone else to solve all my problems for me anyway." Fully detailed bug reports always get better responses. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/