"ps -ef" in Windows

Discussion in 'Win32' started by prasanta123, Jun 26, 2006.

  1. prasanta123

    prasanta123 New Member

    Joined:
    Jun 26, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    Can anyone point me as to how to write a Java/C code that displays "ps -ef" Linux like output with Windows SDK maybe on Symbian?
    If anyone already has that kind of program, can it be relayed to me?

    Thanks in advance
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    For those who are unaware of what ps command of linux does

    PS peports the process status.
    SYNTAX
    ps [-a] [-A] [-c] [-d] [-e] [-f] [-j] [-l] [-L] [-P] [-y] [ -g grplist ] [ -n namelist ] [-o format ] [ -p proclist ] [ -s sidlist ] [ -t term] [ -u uidlist ] [ -U uidlist ] [ -G gidlist ]

    -e List information about every process now running.
    -f Generate a full listing.

    This can be done in C++ using the API EnumProcess. Here is the MSDN sample Enumerating All Processes
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice