View Single Post
Posts: 235 | Thanked: 339 times | Joined on Nov 2010
#64
Originally Posted by tetris11_ View Post
Cant. That's a sudo command, and sudo commands launched from Qt don't allow pipelines or arguments.
E.g. "sudo ifconfig" works, "sudo ifconfig | grep etho" wont....
QProcess::execute [or whatever] ("sh -c \"sudo ifconfig | grep etho\"");
 

The Following User Says Thank You to jstokes For This Useful Post: