External command execution. with result pls urgnet.

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
vpganesh
Forum Newbie
Posts: 2
Joined: Wed Jan 30, 2008 2:15 am

External command execution. with result pls urgnet.

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: External command execution. with result pls urgnet.

Post by Christopher »

(#10850)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: External command execution. with result pls urgnet.

Post by RobertGonzalez »

And for the record, the urgency you place on your request does not equate to this community with the same value.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Re: External command execution. with result pls urgnet.

Post by Jenk »

Infact inverse value, usually.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: External command execution. with result pls urgnet.

Post by Christopher »

"with result pls urgnet." ;)

It is neither a complete sentence nor coherent.
(#10850)
vpganesh
Forum Newbie
Posts: 2
Joined: Wed Jan 30, 2008 2:15 am

Re: External command execution. with result pls urgnet.

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: External command execution. with result pls urgnet.

Post by Chris Corbyn »

Code: Select all

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