Most voted "exec" questions
10 questions
Sort by count of
-
4
votes1
answer384
viewsSend GET parameters to a php using the exec command
I am trying to send GET parameters to a php using the exec php command, but when I put the parameters the script does not run, it does not reach the other php, follows my code: exec.php: $cmd = 'php…
-
0
votes1
answer160
viewsAccess variable via exec
I was trying to create a "shell" to be able to communicate with a python program during its execution, so far I have the following (this code is just an example): import sys, pygame from threading…
-
0
votes1
answer131
viewsShell in C: Segmentation error and execve function, what’s wrong?
#include <sys/types.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <sys/wait.h> void…
-
0
votes1
answer129
viewsxp_cmdshell how to place folders that have space?
I put a folder in the terminal exec xp_cmdshell 'dir b:\teste\*xlsx*' exec xp_cmdshell 'dir b:\teste teste\*xlsx*' When I add the space it does not find. It is impossible to change the name of all…
-
0
votes0
answers616
viewsPHP - Function exec, shell_exec and system do not work properly
Running the example of documentation on the site works. Examples: echo exec('whoami'); $output = shell_exec('ls -l'); echo "<pre>$output</pre>"; My code does not differ so much from the…
-
0
votes1
answer42
viewsSave php parameter in vba variable
I have a form I step a parameter and at the same time open an Excel spreadsheet. Following example: <?php if (isset($_GET["param"]) && !empty($_GET["param"])) { $param = $_GET["param"];…
-
0
votes2
answers33
viewsCheck whether a variable created through exec() exists
Good evening, create an excerpt from a script that performs the creation of a variable through exec(), however, how can I verify that the variable exists through a for in range? # criando a…
-
0
votes1
answer319
viewsProblems for invoking/inserting data with Procedure
I created this project in Oracle, but I’m not able to insert data with the EXEC. Way I’m declaring the EXEC: EXECUTE SP_PRODUTO(8,'teste' 1); erro APRESENTADO: ORA-06550: linha 1, coluna 126:…
-
0
votes1
answer83
viewsError in python exec command
I’m trying to accomplish an action through command exec(): import asyncio from pyppeteer import launch async def main(a): #função que executará o comando exec(a) c="""browser = await launch()…
-
0
votes1
answer250
viewsRun PHP command in Centos 7 via shell_exec()
I’m starting in PHP, I want to make a page that triggers some commands on the Linux server. (Ex.: through a button, run a "service dhcpd Restart" or ". /Restart-Tomcat.sh" When I run this…