I have this code Expected output : print >>>I wanna print this.<<< on stderr How can I make this work? ...
I have this code Expected output : print >>>I wanna print this.<<< on stderr How can I make this work? ...
I'm taking an OS class and we have to implement dup2() in xv6. The code I've written should theoretically work, but, when I try to execute tests, it d ...
I have a problem in execve-pipe process. I split a command with pipeline and sent to function one by one . I made fork , dup2 and close functions . Wh ...
I am trying to implement following bash line in c. I can collect log in log file . But logs are written only when executable finishes execution. ...
Trying to create a child process that will execute the ls -l command which then is passed from a pipe to the parent which reads from the pipe end in ...
Goal: having a program alterna that, according to an integer, particularly reads from STDIN_FILENO and writes on STDOUT_FILENO, write a program that a ...
I got the piping of several commands working. Now Id like to execute this with received arguments (*argv[]) and not hard coded like here. Ived tried ...
The code below forks a child process, and redirects stdout to the pipe. The child is supposed to read from the pipe but it's not happening. Strangely, ...
I am reading this lecture and found this following code sample which I modified to this: I am sharing two different outputs with the only change in ...
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 need the main prog to get two strings from the user and an argument for the other program, call fork() and then in child process I need to write the ...
I'm writing my own custom shell, and as a part of my project, when the program reads either "<" or ">" character from user input, it needs to re ...
I'm trying to write a custom shell-like program, where multiple commands can be executed concurrently. For a single command this is not much complicat ...
I am trying a simple program where the STDOUT from Child process is directed to the Parent process. The program works if I don't fork multiple times a ...
I want to redirect the output of printf to a pipe, but for some reason it doesn't seem to work. What does work is using write instead. This is my pro ...
I'm working on a mini shell in C and I've been trying to figure out for a while now as to why some pipes are stuck inside the child process and do n ...
I am currently working on a university project to basically built my own simple shell. Everything is working great so far. The only thing giving me tr ...
I am learning python and hacking stuff , when I came across the following code snippet python -c 'import socket,subprocess,os;s=socket.socket(socket ...
I'm in an operating systems course and doing assignments with C on Linux. In one of the assignments I was supposed to redirect and output to a file, b ...
Can anyone tell me what's the issue in this please? I am getting an error that "grep: c is not a file or directory". If do this same pattern for 1 pip ...