Article View: news.software.readers
Article #45986slrn/S-Lang : how to use the output of an external command in a S-Lang macro?
From: Christian Perrier
Date: Sat, 16 Jan 1999 00:00
Date: Sat, 16 Jan 1999 00:00
15 lines
1248 bytes
1248 bytes
My question is not directly related to slrn. It is more a S-Lang issue,
probably.
I want to use, in a slrn macro, the output of an external Unix command
(date +%m/%d/%Y)....
How may I proceed for getting this output in a S-Lang string variable? I
didn't found such answer in the slrn documentation. I tried
system("date +%m/%d/%Y") but this returns the errorlevel of the command, not
its output on stdout....
--
Technical Details
Message-ID:
<slrn7a0j6c.e4i.bubulle@mykerinos.kheops.frmug.org>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!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn7a0j6c.e4i.bubulle@mykerinos.kheops.frmug.org> Subject: slrn/S-Lang : how to use the output of an external command in a S-Lang macro? Date: Sat, 16 Jan 1999 00:00:00 +0000 From: bubulle@mykerinos.kheops.frmug.org (Christian Perrier) 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!not-for-mail X-Deja-AN: 433323447 Content-Transfer-Encoding: 7bit Mail-Copies-To: never Organization: | :noitazinagrO X-Server-Date: 16 Jan 1999 08:24:44 GMT Content-Type: text/plain; charset=iso-8859-15 User-Agent: slrn/0.9.5.4 (UNIX) Mime-Version: 1.0 Reply-To: bubulle@kheops.frmug.org Newsgroups: news.software.readers