proc-open

php - proc_open (or other function that works)

I need to do some command lines through a browser. What I need to do in a command-line would be: $login <login name> <password> $passwd <old password> <new password> <retype new password> So, how can I do this using the proc_open function? Or should I use another function to do this? Thanks ...

Launching & controlling application using PHP

I'm trying to launch & control UI automation tool through PHP. I'm able to launch the tool using proc-open but it launches the process in background hence the application doesn't appear on the screen. I'm using proc-open so that I could capture exit status of the application. Please let me know if there is a way to launch and control app...

Processes not responsing to proc_terminate.

Hi all, I have a c++ app, which I launch from a php script (see below). The app compiles, and runs fine when I interact with it on the cli on boths Windows and OSX (separate executables for each). When I launch the script on OSX the app and script both run fine, but when I run it under windows the app process refuses to die but sits idl...

PHP popen and proc_open not returning binary output

When using popen or proc_open to run the following command to list the contents of a windows share: smbclient -N -U 'username%password' -O 'TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192' -O 'TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192' -d 0 '//server/sharename' -c 'dir "dirpath\*"' 2>/...

PHP using proc_open so that it doesn't wait for the script it opens (runs) to finish?

I've spent a while on this but can't get this to work, I apologize as I asked a somewhat related question about this earlier but deleted it so I could do more research to narrow down the question, at this point I am stuck as I thought I had the solution with this but its not working as I expect.. I found a forum where someone asked a sim...

How can I spawn concurrent processes with PHP?

I'm trying to spawn multiple processes at once in PHP with proc_open, but the second call won't start until the first process has ended. Here's the code I'm using: for ($i = 0; $i < 2; $i++) { $cmdline = "sleep 5"; print $cmdline . "\n"; $descriptors = array(0 => array('file', '/dev/null', 'r'), 1 =...

Ensuring proc_open will keep the command line window alive in PHP

In PHP I am using proc_open to run a command at the command line. It needs to open in a new CMD window, so I prepended 'start' to the beginning of the command. However, it also needs to stay open to display the results, but actually it closes the window automatically afterwards. I have tried adding 'pause' and also the /k option to 'r...