🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #36719

slrn: system cmd to variable

#36719
From: Urko Lusa
Date: Sun, 19 Oct 1997 00:00
19 lines
921 bytes
Hi,

I wonder if it is possible to assign the return of a system command to a
variable in .slrn.sl, i.e:

variable fecha = "";
fecha = system ("date");

If I try something like that, slrn reports type mismatch error. The
system function is listed in slang/doc/intrins.txt, but nothing is said
about its return value(s).

I would appreciate your suggestions.

-- 
Urko Lusa | ulusa@arrakis.es | http://www.arrakis.es/~ulusa/

Technical Details
Message-ID: <slrn64kp27.1mu.ulusa@arrakis.es>
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

Show Full Headers
Complete Article Headers
Message-ID: <slrn64kp27.1mu.ulusa@arrakis.es>
Subject: slrn: system cmd to variable
Date: Sun, 19 Oct 1997 00:00:00 +0000
From: ulusa@arrakis.es (Urko Lusa)
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: 281829173
Organization: No
Newsgroups: news.software.readers