Search Results

Search: Posts Made By: tomlee
2,296
Posted By tomlee
The problem of pipe
Hi,guys:

I want to use c to implement a pipe. For example:

ps auxwww | grep fred | more


I forked three child processes. Each is responsible for each command, and pipe to next one.
...
1,301
Posted By tomlee
Two problems when I am writing my own shell
Hi, guys:

I am writing my own shell using c. I meet with two problems.

First, when I use tcsetpgrp system call to move a background job to foreground, when this job finishes, my shell program...
7,299
Posted By tomlee
Thanks. Is "terminal_fd " built in ? Or do I need...
Thanks. Is "terminal_fd " built in ? Or do I need to define "terminal_fd"? Is it file descriptor of stdin?
5,268
Posted By tomlee
How can I use pipe
Hi, guys:

I am working on my shell using c. How can I use pipe to implement the following?

ls -l 1>> | grep hellp 1<< 2>> | less 2<<

(the output of ls goes to grep, and the output of grep...
7,299
Posted By tomlee
How can put a background process to the foreground
Hi, guys:

I am working on my own shell using c. When I put a process into the background, how can I put it back to the foreground using tcsetpgrp?

Thanks
8,721
Posted By tomlee
How to use poll() for I/O multiplex
Hi, guys:

I want to write my own shell using C. I am confused about the usage of I/O multiplex. Does anyone know some examples or explain it to me ?


Thanks so much
8,990
Posted By tomlee
Thanks for your reply. But I want the child...
Thanks for your reply. But I want the child process can run in background, not in foreground
8,990
Posted By tomlee
How to write the shell using c
Hi, guys:

I am working on my own shell using c. When I fork a child process and make it run in background. I hope when this process exits, my shell can print a line such as "this process exits"....
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 03:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy