LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-10-2004, 10:26 AM   #1
indian
Member
 
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, 10:44 AM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
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".
 
  


Reply


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 09:57 AM
how to run a process in the X background sh4d0w13 Linux - General 6 09-12-2005 02:54 PM
is there a system call to send process to run in the background? feetyouwell Programming 4 10-01-2004 04:58 AM
how to run any binary in background - background process tej Linux - Newbie 1 08-16-2004 12:27 AM
Background process h8r Linux - Newbie 5 01-13-2003 04:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:12 PM.

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