Page 1 of 1

External command execution. with result pls urgnet.

Posted: Wed Jan 30, 2008 2:20 am
by vpganesh
Hi

I have a senario where i need to execute an external batch file and need to pass 2 values then it will give a output using i need to read the output and show it in the browser.

step 1 : call command exe file.
step 2 : enter user name
step 3 : enter password
step 4 : read the result and publish in the browser

How can we do that using php? Please help urgent.

Ganesh

Re: External command execution. with result pls urgnet.

Posted: Wed Jan 30, 2008 2:53 am
by Christopher

Re: External command execution. with result pls urgnet.

Posted: Wed Jan 30, 2008 5:40 pm
by RobertGonzalez
And for the record, the urgency you place on your request does not equate to this community with the same value.

Re: External command execution. with result pls urgnet.

Posted: Wed Jan 30, 2008 7:19 pm
by Jenk
Infact inverse value, usually.

Re: External command execution. with result pls urgnet.

Posted: Wed Jan 30, 2008 7:30 pm
by Christopher
"with result pls urgnet." ;)

It is neither a complete sentence nor coherent.

Re: External command execution. with result pls urgnet.

Posted: Wed Jan 30, 2008 10:28 pm
by vpganesh
Hi

Sorry for the mis communication.

It some thing like Passing the 2 values to the batch file and get the result based on the input? how can we do that.

Thanks

Re: External command execution. with result pls urgnet.

Posted: Wed Jan 30, 2008 11:34 pm
by Chris Corbyn

Code: Select all

$result = exec('some-command ' . $arg1 . ' ' . $arg2);