Feb 27, 2003 #1 scecilia Programmer Jul 8, 2002 35 US Hello, How can I invoke a unix command from within my C++ code? Thanks, --Cecilia
Feb 27, 2003 Thread starter #2 scecilia Programmer Jul 8, 2002 35 US I got it, I need double quotes arougn exec() as in: exec("ls -l" Thanks, Upvote 0 Downvote
Feb 27, 2003 #3 rossno Programmer Feb 8, 2002 46 US Try these links for more unix process control functions. Learn the parent child relationship between processes with these various process controls: T exec(): http://www.opengroup.org/onlinepubs/007908799/xsh/exec.html To fork(): http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=fork()+function To spawn(): http://www.qnx.com/developer/docs/qnx_6.1_docs/neutrino/lib_ref/s/spawn.html and system(): http://www.cs.cf.ac.uk/Dave/C/node22.html#SECTION002200000000000000000 Good luck, norm Upvote 0 Downvote
Try these links for more unix process control functions. Learn the parent child relationship between processes with these various process controls: T exec(): http://www.opengroup.org/onlinepubs/007908799/xsh/exec.html To fork(): http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=fork()+function To spawn(): http://www.qnx.com/developer/docs/qnx_6.1_docs/neutrino/lib_ref/s/spawn.html and system(): http://www.cs.cf.ac.uk/Dave/C/node22.html#SECTION002200000000000000000 Good luck, norm
Feb 28, 2003 Thread starter #4 scecilia Programmer Jul 8, 2002 35 US Thank you Norm! Upvote 0 Downvote