Boost logo

Boost Users :

Subject: [Boost-users] boost::process::search_path() and compound cmd
From: niXman (i.nixman_at_[hidden])
Date: 2017-05-11 07:58:13


Hi,

I need to execute the 'stdbuf -oL -eL python scrypt.py' cmd but if I
write the:
auto p = boost::process::search_path("stdbuf -oL -eL python2");
boost::process::child c(p, "script.py");
c.wait();

I get the exception with 'execve failed: Permission denied' message.

My question is, what should I change in my example for executing the
'stdbuf -oL -eL python2 scrypt.py' cmd?

Thanks.

-- 
Regards, niXman
___________________________________________________
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
https://sf.net/p/mingw-w64/

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net