🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.scheme.c
Article #120

Re: "system" procedure in MIT Scheme

#120
From: markf
Date: Fri, 25 Jan 1991 17:03
24 lines
1383 bytes
>> In article <9101251240.AA13337@faui29.informatik.uni-erlangen.de> tnhasbar@faui29.informatik.uni-erlangen.de (T. Hasbargen) writes:
>> >Hallo, Z"uricher !!

   ...

>> >                             t. hasbargen
>> 
>> I don't know the answer to the question, but T. Hasbargen is asking if
>> there is a way, in MIT Scheme, to do the Chez Scheme and Common LISP
>> equivalent of (system "...").  For example, (system "rm *.com").

If you are running under unix, MIT Scheme has (system "...") as a
primitive procedure. In order to use it you should do something like:

  (define system (make-primitive-procedure 'system))
  (system "...")

The following is the documentation string for "system":

  "Invoke sh (the Bourne shell) on the string argument.\n\
  Wait until the shell terminates, returning its exit status as an
  integer."

-Mark
Technical Details
Message-ID: <9101251728.AA05460@bloom-beacon.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ncar!gatech!bloom-beacon!dont-send-mail-to-path-lines
References: <1991Jan25.090311.10179@news.cs.indiana.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ncar!gatech!bloom-beacon!dont-send-mail-to-path-lines
From: markf@altdorf.ai.mit.EDU
Newsgroups: comp.lang.scheme.c
Subject: Re: "system" procedure in MIT Scheme
Message-ID: <9101251728.AA05460@bloom-beacon.MIT.EDU>
Date: 25 Jan 91 17:03:00 GMT
References: <1991Jan25.090311.10179@news.cs.indiana.edu>
Sender: daemon@athena.mit.edu (Mr Background)
Reply-To: markf@zurich.ai.mit.edu
Organization: The Internet
Lines: 24