fixunix
Tags Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

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...


Fix Unix > Linux > Help > Questions > What is the difference between fork and exec command in Unix?

Reply
 
LinkBack Tools
  #1  
Old 06-29-2008, 08:33 PM
Junior Member
 
Join Date: Jun 2008
Posts: 2
Default What is the difference between fork and exec command in Unix?

What is the difference between fork and exec command in Unix?

Regards

Brownaryan
www.unixhelpline.blogspot.com
Reply With Quote
  #2  
Old 10-21-2008, 12:21 AM
Junior Member
 
Join Date: Oct 2008
Posts: 1
Default Re: What is the difference between fork and exec command in Unix?

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.
Reply With Quote
Reply

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.