python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Is it possible to pass popen() a string and have it return null?
While working on line/branch coverage for a unit test, I came across the following code
bool run_command(char *command)
{
FILE *handle = popen(command, "r");
if (handle == nullptr)
...
Epsilon
Votes: 0
Answers: 1
Redirect output of command line to a variable in C
Is there a way to redirect output of a command line which returns integer as an output to a variable in C?
for example, if the command is "cmd", then is there a way to redirect its output (a...
qwerty
Votes: 0
Answers: 3
I am facing issue while using subprocess.Popen in Popen
My requirement is, I am calling a shell script from my python script. When the python script is executed. It shows all the shell script content(not only the echo, even the secret keys which are read f...
Reddy
Votes: 0
Answers: 0
Execute .exe file and interact with it
I have a executable file (.exe) that performs 3 different actions. Once in its main screen, the user can type '1', '2' or '3', to select which action the .exe must perform.
Now, as many of these actio...
JohnCalms
Votes: 0
Answers: 1