hi Matthias,
TL;DR version: pass the `command` argument as the last one.
Long version:
Rex uses the `ps` commands to gather the process information. As far as I know there's no machine readable output for that command. So Rex currently tries to do it on it own, by splitting the resulting lines on whitespaces (`/\s+/`) to extract the differen fields, while keeping the number of extracted fields to the number of expected fields.
Since the command field of the output itself can contain spaces (e.g. `/usr/bin/perl /usr/bin/perldoc Rex::Commands::Process`), this method only can work if `ps` is asked to output the command field as the last one in the line (so it is prevented from being split on whitespaces as the maximum allowed number of splits already happened).
I'm also going to open an issue about that on github, so we might come up with another method to collect process information, or at least ensure that if `command` fields is requested, it is used as last.
cheers,
FErki