![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Purpose of 2>&1 in the command | mmunir | Shell Programming and Scripting | 1 | 05-27-2008 05:00 AM |
| OPeNDAP 3.8.5 (General-Purpose Handlers branch) | iBot | Software Releases - RSS News | 0 | 04-26-2008 05:20 PM |
| whats the purpose of the following script? | vrn | UNIX for Dummies Questions & Answers | 1 | 03-20-2006 09:15 PM |
| Purpose of lint in UNIX | kumar_saurabh | UNIX for Dummies Questions & Answers | 1 | 09-25-2005 10:10 AM |
| Looking for a general purpose System Monitor | darthur | UNIX for Dummies Questions & Answers | 5 | 04-09-2002 04:12 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Understanding the purpose of dup/dup2
I'm having difficulty understanding the purposes of using dup/dup2 when involving forks.
for example, if we call fork() once, that is, we are creating a child process. In what cases would we need to use dup or dup2 to duplicate the file descriptors for standard output and standard error? What happens if we don't do this? also, what is meant by the following: "This function starts the child process, redirects the standard output and standard error to the log file (logfile)" What is this redirection? Please be as specific as you can please. Thank you very much. Last edited by Yifan_Guo; 03-11-2005 at 06:49 PM.. |
|
|||||
|
See this thread. The last 2 posts in the thread are discussing redirection.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|