PDA

View Full Version : [C++] stdio.h - how to execute system() and immediately exit ?



credobyte
August 6th, 2009, 02:45 PM
I can't seem to find a way to execute a system command via system() ( stdio.h ) and exit application immediately.
I need to use it as a launcher for my Java application ( JAR ) but it does not want to exit until I close my Java application ( launched through system("command") ).

Any ideas/suggestions ?

geirha
August 6th, 2009, 03:00 PM
You want exec(3) (http://manpages.ubuntu.com/cgi-bin/search.py?q=exec).