🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #85143

Re: [slrn][s-lang] Redirecting Output from an external Program into an array

#85143
From: John E. Davis
Date: Thu, 04 Oct 2001 21:34
9 lines
1148 bytes
On 4 Oct 2001 16:49:58 GMT, Tilman Linneweh <tilman+0105@arved.de>
>Ist there a possibility to get the output of a command, eg. ls into an 
>array? 

You can use the popen function.  If you want a list of files in a
directory, use the listdir function.

--John
Technical Details
Message-ID: <slrn9rplfi.bp2.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
References: <slrn9rp4rf.2ol0.tilman+0105@tl.kom.tuwien.ac.at>

Show Full Headers
Complete Article Headers
Message-ID: <slrn9rplfi.bp2.davis@aluche.mit.edu>
Subject: Re: [slrn][s-lang] Redirecting Output from an external Program into an array
Date: Thu, 04 Oct 2001 21:34:43 +0000
From: davis@space.mit.edu (John E. Davis)
References: <slrn9rp4rf.2ol0.tilman+0105@tl.kom.tuwien.ac.at>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
Newsgroups: news.software.readers
Organization: Center for Space Research
Reply-To: davis@space.mit.edu
User-Agent: slrn/0.9.6.4 (Linux)
NNTP-Posting-Host: ALUCHE.MIT.EDU
X-Trace: 1002231283 senator-bedfellow.mit.edu 1921 18.75.2.45