From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4c41e220f4b086f5 X-Google-Attributes: gidfee84,public From: mjeffery@cix.compulink.co.uk ("Mark Jeffery") Subject: Re: Spawn OSF commands from C?... Date: 1995/04/04 Message-ID: #1/1 X-Deja-AN: 100804628 references: <1995Mar22.142836.15049@govonca.gov.on.ca> organization: BY DIGITAL EQUIPMENT CO LTD x-news-software: Ameol newsgroups: comp.unix.osf.osf1 fork, and exec! For example: #include main() { if (fork() == 0) { execve("ls","/bin/ls","-l",NULL); } else { printf("I've forked to create a child, running ls\n"); } } This is probably not right, but if you do a man fork, and a man exec, then it will help you. Mark.