output of abhove program is:
spawned child1, pid = -1
The error generated was 2
That means: No such file or directory
In above program i am not able to create processes using spawn
can anyone help me,where i am getting wrong.
I am new to QNX programming anyhelp would be of great help
You don’t initialize the content of the structure inherit aside one variable. The other fields contain garbage.
I assume 001 is a program? The first field should be the FULL path, assuming the 001 program is not in a directory pointed by the environment variable PATH.
First of all Thanks for the reply,i am not able to provide the correct path.the FULL path would be the exe name or the path of exe. or something else.Whichever way i do same error occurs.
This works to launch “pidin”, but unless you have special requirements, it is MUCH easier to call system( “/bin/pidin” ). …also consider the simpler spawnle().