1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

"ps -ef" in Windows

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

  1. prasanta123

    prasanta123 New Member

    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

    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