Link to home
Start Free TrialLog in
Avatar of vksmoorthy
vksmoorthy

asked on

call a process into the background

How to call a process into the background  using system () function in C++?
Avatar of cmaryus
cmaryus

When you run system, it will open a dos prompt from where the command will be run.
To run a process in the background use Win API CreateProcess.
If you're in another operating system, you can use exec to create a background process.
Avatar of vksmoorthy

ASKER

In Unix operating system
In Unix operating system
ASKER CERTIFIED SOLUTION
Avatar of cmaryus
cmaryus

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
simply try this ...

system ("process-name &");

this will make the process to run in background

regards
ramesh
Avatar of Axter
vksmoorthy,
No comment has been added lately (196 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to cmaryus http:#8064075

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

Axter
EE Cleanup Volunteer