Hi all,
I have a program, named execute, which executes a command using kshell. I use an execl call like this:
I catch the output using pipes, and it works fine. The problem comes when I want to run a background process. Sometimes, I don't want my program to wait for the end of the command. I supposed that using '&' would do the job, but ksh still waits for its termination. The problem is that I need to wait for ksh to end, but sometimes I don't want ksh to wait for 'command' to end.
Any ideas?
Thank's in advance.
I have a program, named execute, which executes a command using kshell. I use an execl call like this:
Code:
execl("/usr/bin/ksh", "ksh", "-m", "-c", command, 0);
Any ideas?
Thank's in advance.