🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #62973

[slrn/slang] Questions :-)

#62973
From: Arjan Drieman
Date: Tue, 04 Jul 2000 00:00
31 lines
1819 bytes
I'm a few answers away from having a perfect slrn/slang script :-)

How can I retreive the current system date?  I'd like to have it in
different formats, like yyyy-mm-dd and dd-mm-yyyy.  (These are quite
unusual, I know, but the first is nice to use in filenames and the
latter is standard dutch notation)  If the formats aren't possible,
I can fool around with substr and strcat... if I'd only know how to
get a date string :)


Is there any way I can refer to the user's homedirectory?  ~/
doesn't work, should I just grab it from $HOME?


Is there any way to delete a file in slang?  Somehow

        system("rm -f " + filename);

doesn't really cut it for me ;-)  I mean, it works, but I think it's 
butt ugly.  I'd expect something like unlink() but I couldn't find it.


Also, is there a way to have slrn reload its scripts?  Quitting and
restarting slrn is getting... kinda old.  No biggie though.



Thanks for the aid in my quest for a perfect script,
Arjan
Technical Details
Message-ID: <slrn8m37g2.fl.qhpxvr@quack.node0911.a2000.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrn8m37g2.fl.qhpxvr@quack.node0911.a2000.nl>
Subject: [slrn/slang] Questions :-)
Date: Tue, 04 Jul 2000 00:00:00 +0000
From: qhpxvr@abqr0911.n2000.ay.invalid (Arjan Drieman)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
X-Deja-AN: 642157477
X-Complaints-To: ab...@a2000.nl
X-Trace: spectra.a2000.nl 962698756 9580 62.108.9.17 (4 Jul 2000 08:19:16 GMT)
Organization: A2000 Kabeltelevisie en Telecommunicatie
User-Agent: slrn/0.9.6.2 (Linux)
Reply-To: duc...@duckie.neep.net
NNTP-Posting-Date: 4 Jul 2000 08:19:16 GMT
Newsgroups: alt.lang.s-lang,news.software.readers
X-Authors-Homepage: http://duckie.neep.net/