I have a short Python code (main.py): When I run it I can see the terminal output of os.getpid() and os.execvp commands, but no print("hello"). Ho ...
I have a short Python code (main.py): When I run it I can see the terminal output of os.getpid() and os.execvp commands, but no print("hello"). Ho ...
So I am trying to understand the implementation of fork exec and wait. The program should execute a given program multiple times with different comman ...
I want to pass a heap based array that contains sub arrays for arguments to a function that uses execvp, why a heap based array, because I splitting u ...
I tried to run an program, which use container and execvp() function. When I'm trying to run in the CLion, the program works fine, but when I'm runni ...
I try to write a program in C language that takes a simple Linux command in input like "ls /home". This command is executed in child process with "exe ...
I am very new at C but am currently working on creating a C program to serve as a shell interface. It is supposed to accept commands and then execute ...
In my code, I'm trying to use the function execvp() to execute a command that I get in my shell but the function always returns -1 that indicates unsu ...
I am trying to make use of execvp() to execute child processes but it gives me following error and I am unable to fix it can someone point me in direc ...
I have been recently wondering why do we need to use exit after the execution of a child after performing execvp. An in depth explannation is welcome. ...
I am trying to build a shell in c. I keep getting errors like "Invalid arguments" or "No such file or directory". I am on WSL2. Is there any chance t ...
I want to execute execvp, or really any of them that would work for this, but only run it on the file given. To explain what I am trying to do, I am t ...
I am trying to run grep command using execvp. I have to save the output into an output file like output.txt. The code, I have tried is given below: ...
I'm writing a python script that checks if there available a new version of it it deletes itself, copies a new version and reruns itself with the same ...
I'm having trouble running some C code before launching an app from Spotlight or the Applications folder. I figured I should just be able to create an ...
I am dealing with a Python script which does, after some preparation work, launch ssh. My script is actually a small CLI tool. On Unix-like systems, a ...
how to execute ls>file.txt using execvp system call? I am trying to execute different commands using execvp system call. I want to know how to pass ...
So I am trying to read from standard input and then get the input ready so that later on it can be used inside execvp(). What I am implementing here ...
I'm trying to read in from standard input and use the input in execvp(). at the moment I am recieving many warnings such as warning: assignment make ...
I'm currently working on a project where I have to create a unix shell. I am having problems with my function where I where execute commands like "ls" ...
I have a question about the behavior of child processes. The intention of this test program is to run the Linux command echo Hello | wc using piping. ...