🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #26974

shell_p, MWC 2.0

#26974
From: Karl Rowley
Date: Fri, 22 May 1987 15:42
15 lines
1117 bytes
MWC 2.0 provides a system() function that does not make use of shell_p.

The function first reads the environment variable SHELL.  If that is defined,
its location is searched for in PATH.  If SHELL is not defined, msh.prg is
searched for in PATH.  The command string passed to system() is then 
Pexec()'d with the shell (apparently using the -c option to msh).

This is a clean way of doing things.  Of course, there are other ways
of implementing the system() function without having the extra overhead 
of a shell process.


Karl Rowley
rowley@orville.nas.nasa.gov
Technical Details
Message-ID: <8705221542.AA17558@orville.arpa>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!ORVILLE.ARPA!rowley

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!ORVILLE.ARPA!rowley
From: rowley@ORVILLE.ARPA (Karl Rowley)
Newsgroups: comp.sys.atari.st
Subject: shell_p, MWC 2.0
Message-ID: <8705221542.AA17558@orville.arpa>
Date: Fri, 22-May-87 11:42:44 EDT
Article-I.D.: orville.8705221542.AA17558
Posted: Fri May 22 11:42:44 1987
Date-Received: Sat, 23-May-87 16:40:33 EDT
Sender: daemon@ucbvax.BERKELEY.EDU
Distribution: world
Organization: The ARPA Internet
Lines: 15