🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #44704

Re: slrn: 'hostname' should be a variable

#44704
From: NAGY Andras
Date: Fri, 20 Nov 1998 00:00
45 lines
1962 bytes
Gerfried Fuchs <alfie@innocent.com> wrote:
>  Hmmm, I thought that is already implemented??
> $ grep hostname .slrnrc
> hostname "innocent.com"
> 
>  Ah, there is it? Don't see why you can't find it?  It's implemented at least
> since version 0.9.5.2 since this was the first version I used ;)

Actually here 'hostname' is not a variable but a command, as I can
see.  My .slrnrc looks like:

hostname "telnet.hu"
set username "nagya"
set realname "NAGY Andras"

and it works fine.  Changing 'hostname' to 'set hostname' results

Reading startup file /home/nagya/.slrnrc.slrn fatal error:
/home/nagya/.slrnrc: Error encountered processing line 14
set hostname "telnet.hu"

Additionally, it would be nice if I could set the hostname on a per
server basis.  If 'hostname' would be a variable, I could write:

define startup_hook ()
{
    !if (strcmp (server_name(), "ludens.elte.hu")) {
        set_string_variable("hostname", "valerie.inf.elte.hu");
    }
}

This piece of code runs fine with variables like username, realname
etc, but since hostname is not a variable, I get the following error:

loading /home/nagya/.slrn.sl
Using newsrc file .jnewsrc for server ludens.elte.hu.
hostname is not a valid variable name.
S-Lang Error: Intrinsic Error: Error while executing startup_hook


I still hope someone can fix this. :)

Andras

Technical Details
Message-ID: <slrn75bsqe.9e5.nagya@valerie.inf.elte.hu>
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
References: <slrn75b9el.r5p.nagya@valerie.inf.elte.hu> <slrn75bqp4.6rl.alfie@skater.htu.tuwien.ac.at>

Show Full Headers
Complete Article Headers
Message-ID: <slrn75bsqe.9e5.nagya@valerie.inf.elte.hu>
Subject: Re: slrn: 'hostname' should be a variable
Date: Fri, 20 Nov 1998 00:00:00 +0000
From: nagya@telnet.hu (NAGY Andras)
References: <slrn75b9el.r5p.nagya@valerie.inf.elte.hu> <slrn75bqp4.6rl.alfie@skater.htu.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!not-for-mail
X-Deja-AN: 414024593
Newsgroups: news.software.readers