Path: utzoo!attcan!uunet!munnari.oz.au!metro!wolfen!hls0!george From: george@hls0.hls.oz (George Turczynski) Newsgroups: comp.lang.c Subject: Re: Calling system processes Message-ID: <950@hls0.hls.oz> Date: 28 Oct 90 23:36:14 GMT References: <15657@mentor.cc.purdue.edu> Lines: 19 In article <15657@mentor.cc.purdue.edu>, shepherd@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@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 ! ---------------------------