Cannot execute echo command in QProcess
问题 I want to launch a SCPI command in my device using netcat utility under Ubuntu 10.04 LTS with Qt. My code looks like: env = "echo TRIG | nc 192.168.1.100 23 -q1"; process1.execute(env); process1.waitForFinished(1000); This command does not return any data but simply triggers the data acquisition. If using terminal with same "echo TRIG | nc 192.168.1.100 23 -q1" command, everything works fine. From Qt, it does not work. The debug output is "TRIG | nc 10.0.3.250 23 -q1" ... so without an "echo"