in reply to software inventory
The system call looks suspicious indeed, you need to quote all of the arguments into one string.