Discussion:
Running a command without shell
v***@yourcmc.ru
2013-09-29 10:52:41 UTC
Permalink
Hi!

Is it possible to run a command and capture its output via an FD (like
in proc_open()), but without using the shell? As far as I can see now
there is no way to do it. I think that's a simple feature, maybe just
add it to proc_open()? (for example run command directly using exec() if
the first argument is an array?) it would be rational because there is
already such option for Windows...
--
With best regards,
Vitaliy Filippov
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Marco Behnke
2013-10-10 08:34:51 UTC
Permalink
Sound like declaring an output buffer to me?
Post by v***@yourcmc.ru
Hi!
Is it possible to run a command and capture its output via an FD (like
in proc_open()), but without using the shell? As far as I can see now
there is no way to do it. I think that's a simple feature, maybe just
add it to proc_open()? (for example run command directly using exec() if
the first argument is an array?) it would be rational because there is
already such option for Windows...
--
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer
Zend Certified Engineer PHP 5.3

Tel.: 0174 / 9722336
e-Mail: ***@behnke.biz

Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal

http://www.behnke.biz
Loading...