hello, i am creating an application in c++ gtk and if i press an button an threading process will start and i need to run the application if the window is closed also is it is possible?
A:
On Windows, you need to create a Windows/Linux/Mac Service or run the process in background. On Linux you need to create a daemon service or run the process in background. Services allow to automatically start the process on boot.
Amit Kumar
2010-09-17 08:48:51
i need it in linux not windows
rrama
2010-09-17 08:50:17
A:
#include <stdlib.h>
int main()
{
system("echo HelloWorld &");
return 0;
}
This will spawn a new process.
Note: In general for the purpose of portability, avoid system functions.
penguinpower
2010-09-25 01:09:16