Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-10-2004, 11:26 AM   #1
Registered: Aug 2004
Posts: 137

Rep: Reputation: 15
run process in background using system calls

Hi to all,
I want to run some process(say ls ...) in background...using system calls.HOw to do this....Can someone give me a Link or URL for this .I have make my Bash Own shell and I want to add this functionality.Thanks....
Old 08-10-2004, 11:44 AM   #2
Senior Member
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
This has been talked about several times on this forum already. You call fork() and then use one of the exec() functions on the child process. Then your shell and the running process run in "parallel".


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to run system-config-soundcard automatically during starting process? leduytien Linux - Software 1 02-11-2006 10:57 AM
how to run a process in the X background sh4d0w13 Linux - General 6 09-12-2005 03:54 PM
is there a system call to send process to run in the background? feetyouwell Programming 4 10-01-2004 05:58 AM
how to run any binary in background - background process tej Linux - Newbie 1 08-16-2004 01:27 AM
Background process h8r Linux - Newbie 5 01-13-2003 05:21 PM

All times are GMT -5. The time now is 01:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration