Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Perform other functions while untarring file using "system" command in a C program



Fork() is a Unix system call that spawns a child process which is 
essentialy a clone of the parent.
The exec() system call causes a program (or command) to be executed. The 
wait() system call causes the parent process to wait for the child. In 
contrast, the system() function calls fork() to execute a shell, which then 
executes the command. Check the man pages.
"zoqix" wrote:
> thanks guys. I used the background function and it works. As for the fork(),
> I'm not sure how do I use it and the exec() function.
> any advise?
-- 
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org


-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org