This is a discussion on Difference in Commands within the C and C++ forums, part of the Programming Talk category; I want to try out shell commands with C programming. I am confused with the usage of some of the ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Difference in Commands
I want to try out shell commands with C programming. I am confused with the usage of some of the commands namely popen(), pclose() spawn and exec. Can anyone tell me the difference in usage between these commands? In what scenarios would a user use the above commands?
|
|
|||
|
popen and pclose commands are used by users for reading the standard output or also for writing to the standard input of the command they invoke in a very efficient and easier manner. The commands system() is used for carrying out the execution of commands given by user in the command prompt. spawn and exec are used for defining and controlling level of access of users at various levels as per needs of user.
|
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linux vs. Windows web Hosting, does it make a difference? | sanereddy | Unix Articles and Tutorials | 7 | 04-23-2006 02:39 PM |
| comp.lang.c Answers to Frequently Asked Questions (FAQ List) | Steve Summit | Tech FAQ | 0 | 06-01-2004 07:00 AM |
| Quarterly ASCII posting of Caldera (SCO) OpenUNIX 8 FAQ | Boyd Lynn Gerber | Tech FAQ | 0 | 04-25-2004 11:11 PM |
| vi editor FAQ (Frequently Asked Question List), Part 1/2 | E. Larry Lidz | Tech FAQ | 0 | 04-19-2004 01:02 AM |
| Smalltalk FAQ (v.1.0) | Vikas Malik | Tech FAQ | 0 | 04-17-2004 08:27 AM |