Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!gatech!hao!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.wizards Subject: Re: Adding to Environment Pointers Message-ID: <6008@brl-smoke.ARPA> Date: Mon, 22-Jun-87 16:20:33 EDT Article-I.D.: brl-smok.6008 Posted: Mon Jun 22 16:20:33 1987 Date-Received: Tue, 23-Jun-87 07:29:07 EDT References: <7950@brl-adm.ARPA> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <7950@brl-adm.ARPA> drears@ARDEC.arpa (FSAC) writes: >... when I run the compiled program I get the error message: "Trace/BPT trap". > system("/bin/sh"); No need for this. > exect("bin/sh",newarg,newenvp); Of course you get a trap, that's what exect() is all about. Use execve() instead.