Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need more data through windows command #42

Open
shirbr510 opened this issue Feb 24, 2017 · 2 comments
Open

Need more data through windows command #42

shirbr510 opened this issue Feb 24, 2017 · 2 comments

Comments

@shirbr510
Copy link

as I've read in #10 , there can be use of the command:

wmic process list

instead of:

wmic process get ProcessId,CommandLine

the list command returns much more data which personally, I'd like to get.

is there any possibility to change the implementation in such a way that I could choose the projection I'd want out of all the available data that wmic offers?

PS: I'm not using wmic directly because I need it to run both on win & *nix systems

@shirbr510 shirbr510 changed the title Need more information through windows command Need more datat through windows command Feb 24, 2017
@shirbr510 shirbr510 changed the title Need more datat through windows command Need more data through windows command Feb 24, 2017
@shirbr510
Copy link
Author

Is this repository even still maintained?
at this rate I'll fork it myself

@shirbr510 shirbr510 reopened this Mar 6, 2017
@neekey
Copy link
Owner

neekey commented Mar 11, 2017

@shirbr510 sorry for reply so late, was quite busy.

I haven't got much time to check the exact difference between wmic process list and wmic process get ProcessId,CommandLine, but I did a simple test just using wmic process list to do the work and it seems the output format is quite the same and the parser can parse the result correctly, but more test needs to be done.

In terms of your requirement, since we somehow need to keep the result of the lookup() persistent through *nix and windows, I would say one way to do it is add another extra field as a row result:

{
    pid: pid,
    command: command,
    arguments: args,
    ppid: ppid,
    originalRow: {
         pid: '...',
         ppid: '....',
         .....
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants