Linked Questions
30 questions linked to/from PHP reading shell_exec live output
-2
votes
2
answers
619
views
get real time Result shell using PHP [duplicate]
I have to execute a batch file (I.e. .bat ) and get the result on an HTML page.
I used this PHP code to get a result:
<?php
echo "<br>";
$result = shell_exec('start file.bat');
...
0
votes
0
answers
350
views
How to save status the youtube dl to the .txt file [duplicate]
I have a script using youtube dl. The script downloads the file and converts it to the mp3 format. I would like to write in the .txt file the status in which the phase is, for example:
- downloading
- ...
1
vote
0
answers
133
views
php live output for bash script if output is filtered [duplicate]
First.. my php knowledge are very poor.
The target is to display the live content of an bash script via a web page.
The bash script itself as three tasks:
prepare data
some infos to the user
execute ...
20
votes
6
answers
25k
views
How to disable output buffering in nginx for PHP application
We have code similar to this:
<?php
ob_implicit_flush(true);
ob_end_flush();
foreach ($arrayOfStrings as $string) {
echo time_expensive_function($string);
}
?>
In ...
17
votes
6
answers
26k
views
How To watch a file write in PHP?
I want to make movement such as the tail command with PHP,
but how may watch append to the file?
18
votes
7
answers
32k
views
Failed to load native library 'libnative-platform.so' for Linux amd64
First off, if this belongs on Ask Ubuntu, my apologies...I'm not really sure what forum this falls under.
I'm attempting to fork and build an Android project from Github using PHP and a shell script. ...
9
votes
7
answers
9k
views
PHP: Outputting the system / Shell_exec command output in web browser
I tried to output a simple ping command on a web page in a similar way( and same time) as it is displaying in terminal, using shell_exec; But it is displaying only after the complete execution, while ...
3
votes
1
answer
7k
views
Bash script live output executed from PHP
I'm trying to execute a bash script from php and getting its output in real time.
I am applying the answers found here:
However they are not working for me.
When I invoke the .sh script on this ...
1
vote
2
answers
4k
views
Live output of shell script using `watch` in browser?
I've seen PHP reading shell_exec live output and PHP: Outputting the system / Shell_exec command output in web browser, but can't get the following working.
NB: originally, my shell script was ...
2
votes
1
answer
5k
views
How to display output of 'top' command on web browser using Php [duplicate]
I have a simple php script 'top.php' with shell_exec function.
Code:
<?php
echo shell_exec("top");
?>
What I am looking for is to view results of 'top' command on a web browser. So, if I ...
2
votes
2
answers
2k
views
Reading live output of a python program using php
I am making a PHP web page that executes a python program and while the python program is running, it displays the output in real-time.
After following this answer, this is the code that I am trying.
...
1
vote
4
answers
1k
views
Executing bash script via PhP gives a different result compared to executing manually
As the title says, when i try manually executing the script by double clicking and pressing execute through terminal. It works correctly
However when i run my php script or typing the php into the ...
2
votes
1
answer
932
views
Capturing and displaying exec/shell_exec periodic output?
You can easily use exec() or shell_exec() to execute a system command, like ls -l /var/www/mysite and then output the result of the command.
How would one execute and display the result of a command ...
2
votes
1
answer
2k
views
Php exec or shell_exec not works when execute command lftp
Command does not work if run from php with variables. But if I run it from the terminal or from php (exec or shell_exec) without variables it works.
This not works:
$command = 'lftp -c "open -u'.$...
1
vote
1
answer
1k
views
Get live output from terminal window through PHP 7
I am trying to get a live output (when a line appears in the window, it should appear on the server as well) of a terminal window on Ubuntu 16.04. I have various needs for this to work. I am first off ...