G
Guest
I want from my java app to run this shell command (as child process):
php -n my_script.php
I want to create the stdin of child process from a string in my app
(e.g. String stdin_in_child).
I want to retrieve the stdout of child process (when it finished) in a
string in my app (e.g. String stdout_from_child).
I see the ProcessBuilder and Process but I failed to create a working
piece of code.
Can you help me with a URL or a simple piece of code?
Special thanks
php -n my_script.php
I want to create the stdin of child process from a string in my app
(e.g. String stdin_in_child).
I want to retrieve the stdout of child process (when it finished) in a
string in my app (e.g. String stdout_from_child).
I see the ProcessBuilder and Process but I failed to create a working
piece of code.
Can you help me with a URL or a simple piece of code?
Special thanks