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

Spaces in command name #2750

Closed
iwankgb opened this issue Dec 3, 2020 · 0 comments · Fixed by #2751
Closed

Spaces in command name #2750

iwankgb opened this issue Dec 3, 2020 · 0 comments · Fixed by #2751

Comments

@iwankgb
Copy link
Collaborator

iwankgb commented Dec 3, 2020

According to man ps:

The following user-defined format specifiers may contain spaces: args, cmd, comm, command, fname, ucmd, ucomm, lstart, bsdstart, start.

Therefore ps output parsing (using strings.Fields()) is broken and is not capable of handling such string:

root         107       2 21:34  0.0  0.0     0      0 I<   00:00:00 DWC Notificatio   3 -
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

Successfully merging a pull request may close this issue.

1 participant