I'm programming a watchdog for my system, at the beginning of the code I need to run the application in the background, for this I use the command:
system ("./ meuprogram &");
But the program understands the '&' (required to open background process) as an expected parameter for the application.
The command "./meuprograma&" executed directly by the terminal works correctly, however in C this problem is occurring.
The important thing is to be able to open my application in the background and continue running the watchdog. Any idea? Thanks!