public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Dave Korn" <dk@artimi.com>
To: <cygwin@cygwin.com>
Subject: RE: Problems listing tasks under cygwin.
Date: Tue, 18 May 2004 17:03:00 -0000	[thread overview]
Message-ID: <NUTMEGSzKBWqUh89xIM00000163@NUTMEG.CAM.ARTIMI.COM> (raw)
In-Reply-To: <1084866742.40a9c0b605e6e@mail.municipia.com>

> -----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/

  parent reply	other threads:[~2004-05-18 17:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-18  8:07 alejandro.sanchez
2004-05-18 16:58 ` Larry Hall
2004-05-18 17:03 ` Dave Korn [this message]
2004-05-18 18:40   ` Brian Dessent
2004-05-18 18:49     ` Igor Pechtchanski
2004-05-19  9:23     ` [OT] " Dave Korn
2004-05-19  9:29       ` Brian Dessent
2004-05-19 14:03         ` Brian Ford
2004-05-20 13:22           ` Dave Korn

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=NUTMEGSzKBWqUh89xIM00000163@NUTMEG.CAM.ARTIMI.COM \
    --to=dk@artimi.com \
    --cc=cygwin@cygwin.com \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).