1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

"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,285
    Likes Received:
    364
    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