🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189362

lisp func to return output of shell command

#189362
From: Liam Breck
Date: Wed, 20 Feb 1991 21:11
16 lines
1177 bytes
Hi all...

You know the handy system("shell_command_here") call in C that returns
the command's output as a string?  Well I need something like that for
Emacs Lisp...  An Emacs function that will execute a a shell command
and return it's output (a short string) which will be bound to a
variable.

I have tried to find such a thing in Info and by Apropos with every
keyword I could think of (shell, process, exec, system, call, command,
etc.) so if I've missed something, I apologize, but please don't tell
me to RTFM.

thanx...

Liam Breck
Technical Details
Message-ID: <1536@umvlsi.ecs.umass.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!uunet!samsung!crackers!m2c!umvlsi!umvlsi.ecs.umass.edu

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,8812ab3e2fdef023,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-02-21 10:28:21 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!uunet!samsung!crackers!m2c!umvlsi!umvlsi.ecs.umass.edu
From: breck@umvlsi.ecs.umass.edu (Liam Breck)
Newsgroups: gnu.emacs.help
Subject: lisp func to return output of shell command
Message-ID: <1536@umvlsi.ecs.umass.edu>
Date: 20 Feb 91 21:11:40 GMT
Sender: breck@umvlsi.ecs.umass.edu
Distribution: gnu
Organization: University of Massachusetts, Amherst
Lines: 16