What is the difference between fork and exec command in Unix? - Questions
This is a discussion on What is the difference between fork and exec command in Unix? - Questions ; What is the difference between fork and exec command in Unix? Regards Brownaryan www.unixhelpline.blogspot.com...
![]() |
| | LinkBack | Tools |
|
#1
| |||
| |||
| Regards Brownaryan www.unixhelpline.blogspot.com |
|
#2
| |||
| |||
| hi, Simply put, fork duplicates your shell (file descriptors, etc) in a subshell. Usually a forked process will then exec in that subshell. exec exec's the command in your current shell, basically co-opting it. In pure versions of exec, if you do, just at the shell prompt. |
![]() |
« Previous Thread
|
Next Thread »
| Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference between fork and exec? | brownaryan | Unix | 0 | 06-13-2008 09:59 AM |
| Fork Exec Pipe: HOW??? | unix | Unix | 19 | 12-01-2007 01:33 PM |
| is there any diff of wait/fork in Hp Unix and linux | unix | Unix | 2 | 10-04-2007 12:09 AM |
| difference between a spawn and a fork | unix | Unix | 11 | 10-04-2007 12:08 AM |
| pipe,fork,exec | unix | Redhat | 0 | 09-30-2007 08:40 PM |
All times are GMT. The time now is 08:33 AM.




