🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #708

Xenix troubles execing a shell script.

#708
From: Russ Nelson
Date: Tue, 25 Sep 1990 15:58
13 lines
1303 bytes
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
Technical Details
Message-ID: <1990Sep25.155833.8015@news.clarkson.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!clarkson!sun.soe.clarkson.edu!nelson

Show Full Headers
Complete Article Headers
Message-ID: <1990Sep25.155833.8015@news.clarkson.edu>
Subject: Xenix troubles execing a shell script.
Date: Tue, 25 Sep 1990 15:58:33 +0000
From: nelson@sun.soe.clarkson.edu (Russ Nelson)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!clarkson!sun.soe.clarkson.edu!nelson
Newsgroups: news.software.nntp
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