Thanks Paul for your response. my issue is not just reading from the output
text file. But my issue is what I would do in the php script while the
program is execting( i.e after issueing shell_exec() command) and how would
i know that file has been written so that i can read it using php.
Thanks
On Thu, 2007-06-21 at 01:13 -0700, makhan wrote:
Thanks Paul for your response. my issue is not just reading from the output
text file. But my issue is what I would do in the php script while the
program is execting( i.e after issueing shell_exec() command) and how would
i know that file has
2007. 06. 21, csütörtök keltezéssel 01.13-kor makhan ezt írta:
Thanks Paul for your response. my issue is not just reading from the output
text file. But my issue is what I would do in the php script while the
program is execting( i.e after issueing shell_exec() command) and how would
i know
makhan wrote:
Thanks Paul for your response. my issue is not just reading from the output
text file. But my issue is what I would do in the php script while the
program is execting( i.e after issueing shell_exec() command) and how would
i know that file has been written so that i can read it
use exec() instead of shell_exec()
Why?
--
Richard Heyes
0844 801 1072
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2007. 06. 21, csütörtök keltezéssel 10.08-kor Richard Heyes ezt írta:
use exec() instead of shell_exec()
Why?
hmm I thought the OP's question was about how can he get output/return
value from the external program (the file name for example) - maybe it
was my misunderstanding
greets
Zoltán
hmm I thought the OP's question was about how can he get output/return
value from the external program (the file name for example) - maybe it
was my misunderstanding
In which case I would still use shell_exec():
?php
$output = shell_exec('ls -l');
?
--
Richard Heyes
0844 801 1072
2007. 06. 21, csütörtök keltezéssel 10.46-kor Richard Heyes ezt írta:
hmm I thought the OP's question was about how can he get output/return
value from the external program (the file name for example) - maybe it
was my misunderstanding
In which case I would still use shell_exec():
?php
On 6/21/07, Zoltán Németh [EMAIL PROTECTED] wrote:
2007. 06. 21, csütörtök keltezéssel 10.46-kor Richard Heyes ezt írta:
hmm I thought the OP's question was about how can he get output/return
value from the external program (the file name for example) - maybe it
was my misunderstanding
Thanks guys for your response. I think this output from reply can solve my
problem. Becuase I can return some value like ' fileready == true' as the
output from the executable program. And when fileready is true I can read
the output text file. Can you please explain a little bit what kind of
I am using php to write inputs I receive from browser into a text file.Than I
use shell_exec() to execute a program on server that writes those inputs
from the text file and write its output to another text file. Now after my
program has written its output I want to read this text file from php
On Wed, 2007-06-20 at 21:42 -0700, makhan wrote:
Now after my
program has written its output I want to read this text file from php and
send it back to the browser.
Can someone please guide me how I can do this.
This seems like an overly complex way of doing something that sounds
quite
Hello
In one script I use exec() to execute a shell script which takes 2-3
hours to run. I disabled user abort and set time limit to more than one
day. The shell script finishes well but no instruction after exec() is
run. The script finishes with no error nor warnings.
Some of you know hwat
Hi
In the PHP manual there are some program execution
functions like passthru(), exec() and system().
I´ve got PHP4 installed on IIS 5.0 on Windows 2000
Server, and it works fine.
I tried with a very simple script like the
following:
? $commandstring =
"cmd";
passthru($commandstring);?
I need to run some external programs from a PHP script.
How could I do that?
You might be able to use them through (D)COM objects, since you're on an NT
server. I'm not sure about the passthrough() functions and stuff on NT,
though... I've never really used them (or had reason to).
--Jason
--
This happens only when I use php as a module:
When I'd like to run a command with exec or system function I got always
this message
and the program never executes:
Warning: Unable to fork [the command's name what I'd like to run] in
filename on line XY
Your OS may have placed an upper bound on
Hi!
This happens only when I use php as a module:
When I'd like to run a command with exec or system function I got always this message
and the program never executes:
Warning: Unable to fork [the command's name what I'd like to run] in filename on line
XY
What' the matter?
17 matches
Mail list logo