Path: utzoo!utstat!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!clarkson!sun.soe.clarkson.edu!nelson From: nelson@sun.soe.clarkson.edu (Russ Nelson) Newsgroups: news.software.nntp Subject: Xenix troubles execing a shell script. Message-ID: <1990Sep25.155833.8015@news.clarkson.edu> Date: 25 Sep 90 15:58:33 GMT Sender: news@news.clarkson.edu Reply-To: nelson@clutx.clarkson.edu (aka NELSON@CLUTX.BITNET) Organization: Clarkson University, Potsdam, NY Lines: 12 Nntp-Posting-Host: sun.soe.clarkson.edu Hi. Has anyone else running SCO Xenix 2.3.2 had trouble with `spawn.c:spawn's attempt to execute a shell script? It gives me a "Exec format error" error. I've gotten it to work by doing: execle("/bin/sh", "sh", path, flag, (char *) NULL, myenviron); instead of the current: execle(path, name, flag, (char *) NULL, myenviron); Is this a problem in spawn.c:spawn, or have I misconfigured something? -- --russ (nelson@clutx [.bitnet | .clarkson.edu]) Russ.Nelson@$315.268.6667 It's better to get mugged than to live a life of fear -- Freeman Dyson