Linked Questions

-2 votes
2 answers
619 views

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'); ...
Yaz's user avatar
  • 510
0 votes
0 answers
350 views

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 - ...
Wojciech Urbaniak's user avatar
1 vote
0 answers
133 views

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 ...
Christian's user avatar
20 votes
6 answers
25k views

We have code similar to this: <?php ob_implicit_flush(true); ob_end_flush(); foreach ($arrayOfStrings as $string) { echo time_expensive_function($string); } ?> In ...
Leagsaidh Gordon's user avatar
17 votes
6 answers
26k views

I want to make movement such as the tail command with PHP, but how may watch append to the file?
freddiefujiwara's user avatar
18 votes
7 answers
32k views

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. ...
Andrew Quebe's user avatar
  • 2,293
9 votes
7 answers
9k views

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 ...
user2723949's user avatar
3 votes
1 answer
7k views

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 ...
Zumo de Vidrio's user avatar
1 vote
2 answers
4k views

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 ...
jezmck's user avatar
  • 1,139
2 votes
1 answer
5k views

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 ...
SamB's user avatar
  • 23
2 votes
2 answers
2k views

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. ...
Nikhil Gupta's user avatar
1 vote
4 answers
1k views

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 ...
peekaboo's user avatar
  • 105
2 votes
1 answer
932 views

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 ...
Jake Wilson's user avatar
  • 91.8k
2 votes
1 answer
2k views

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'.$...
mstafkmx's user avatar
  • 429
1 vote
1 answer
1k views

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 ...
Konstantin Rusenkov's user avatar

15 30 50 per page