Questions tagged as 'exec'

1
answer

Send GET parameters to a php using the exec command

I'm trying to send GET parameters to a php using the php exec command, but when I put the parameters the script does not run, it does not get to the other php, follow my code: exec.php: $cmd = 'php teste.php?id=10,11'; $pid = exec($cmd.'...
asked by 05.09.2018 / 15:59
1
answer

Problems to invoke / insert data with the procedure

I created this procedure in Oracle, but I am not able to insert data with EXEC . How I'm Declaring EXEC: EXECUTE SP_PRODUTO(8,'teste' 1); erro APRESENTADO: ORA-06550: linha 1, coluna 126: PLS-00306: número incorreto de tipos de argum...
asked by 27.09.2018 / 04:11
1
answer

Access variable through exec

I was trying to create a shell to be able to communicate with a program in python during its execution, so far I have the following (this code is just an example): import sys, pygame from threading import Thread import math pygame.init() # I...
asked by 12.02.2018 / 13:12
1
answer

Save php parameter in vba variable

I have form that I pass one parameter and at the same time opens an Excel worksheet.  Here's an example: <?php if (isset($_GET["param"]) && !empty($_GET["param"])) { $param = $_GET["param"]; exec("START teste.xlsx $...
asked by 15.10.2018 / 23:05
0
answers

PHP - Exec function, shell_exec, and system do not work correctly

Running the example documentation on the site itself works. Examples: echo exec('whoami'); $output = shell_exec('ls -l'); echo "<pre>$output</pre>"; My code does not differ so much from the examples described in the docume...
asked by 19.09.2018 / 22:12
0
answers

xp_cmdshell how to put 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 space it does not find. It is not possible to change the name of all folders that have space because there are sev...
asked by 16.05.2018 / 17:41
0
answers

How to assign data in a cursor from an exec and not a select

Context: I have several files in a folder, so I do not want to put the path one by one, so I need to add my command variables. Set @nome_arquivo = '252203408.xlsx' Set @sql='SELECT * FROM OPENROWSET( ''Microsoft.ACE.OLEDB.12.0'...
asked by 17.05.2018 / 20:46
1
answer

Shell in C: Segmentation error and execve function, what's wrong? [closed]

#include <sys/types.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <sys/wait.h> void type_prompt(){ printf("\n$~"); } void read_comman...
asked by 13.04.2018 / 17:52
0
answers

List directory using Java getRuntime on MAC

In Java I am trying to open the mac terminal and execute a command to list folder 'ls'. Follow the code public String executeCommand() { String[] commandWithParameters = null; commandWithParameters = new String[]{...
asked by 27.03.2018 / 23:46