Computer Science Canada QNX Help |
Author: | Tallguy [ Wed Feb 06, 2013 4:08 pm ] | ||
Post subject: | QNX Help | ||
Greetings, Within QNX how would you run another code executable? I was thinking of spawn(), the other file is within my same project,
BUT where does QNX save the executables? so that i can run them? :/ |
Author: | btiffin [ Sun Feb 10, 2013 3:09 am ] |
Post subject: | Re: QNX Help |
Look to fork and exec http://www.qnx.com/developers/docs/6.3.0SP3/neutrino/lib_ref/f/fork.html Strings passed to execvp can be of the form "./program" which will force looking in current working dir (for instance - any slash in the name and it's a fixed path), otherwise the system will search through PATH. Cheers p.s. Just looked. The QNX spawn family looks pretty handy, but may be less portable. Or I'm old, and resistant to new fangled progress. |