Search Results

Search: Posts Made By: Rodrigo_Bueno
11,002
Posted By Rodrigo_Bueno
How do I give permission for the kill command?
<?php
$comando = "kill -9 3104";
$output = shell_exec($comando);
?>


I am running this web page, but it does not execute the command, in the log file it looks like this:

sh: 1: kill:...
14,543
Posted By Rodrigo_Bueno
[Fri Sep 20 16:29:05.960464 2019]...
[Fri Sep 20 16:29:05.960464 2019] [mpm_prefork:notice] [pid 1090] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Fri Sep 20 16:29:05.960506 2019] [core:notice] [pid 1090]...
14,543
Posted By Rodrigo_Bueno
Shell_exec is not working
I am trying to execute a command with shell_exec but this command does not work, other commands work


<?php
$output = shell_exec("tail /var/log/syslog");
echo "<pre>$output</pre>";
...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 10:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy