Calling system processes
George Turczynski
george at hls0.hls.oz
Mon Oct 29 10:36:14 AEST 1990
In article <15657 at mentor.cc.purdue.edu>, shepherd at mentor.cc.purdue.edu (Mike Shepherd) writes:
>
> I was wondering if there is a way to call system processes from a
> C program, and how it would be done (this like 'ls','cd','more')? I am
> most interest in the ability to change directories though.
Just to quickly answer this last one, though perhaps countless others will also,
use the `chdir()' system call to change directories.
As for the rest, read the manual entries on system(), fork(), execve(), wait()
and so on...
--
George P. J. Turczynski, Computer Systems Engineer. Highland Logic Pty Ltd.
ACSnet: george at highland.oz |^^^^^^^^^^^^^^^^^^^^^^^^| Suite 1, 348-354 Argyle St
Phone: +61 48 683490 | Witty remarks are as | Moss Vale, NSW. 2577
Fax: +61 48 683474 | hard to come by as is | Australia.
--------------------------- space to put them ! ---------------------------
More information about the Comp.lang.c
mailing list