Thread View: news.software.readers
3 messages
3 total messages
Started by REPLYTO Xenon
Wed, 16 Sep 1998 00:00
slrn: random sig
Author: REPLYTO Xenon
Date: Wed, 16 Sep 1998 00:00
Date: Wed, 16 Sep 1998 00:00
19 lines
996 bytes
996 bytes
i have a random sig script which i want slrn to execute when i post articles. in my old newsreader, tin, all i have to do was to point the signature option to my script and it would run it. in slrn however, it will just print the whole script as my sig. how do i modify my .slrnrc so it will execute the script? TIA. -- joseph jeong joseph@resnet.gatech.edu 330666 georgia tech station, atlanta, ga 30332 (404) 206 4827
Re: slrn: random sig
Author: Heikki Kantola
Date: Fri, 18 Sep 1998 00:00
Date: Fri, 18 Sep 1998 00:00
26 lines
1608 bytes
1608 bytes
Xenon <REPLYTO@is.set.> informed news.software.readers with the following: >i have a random sig script which i want slrn to execute when i post >articles. > >in my old newsreader, tin, all i have to do was to point the signature >option to my script and it would run it. > >in slrn however, it will just print the whole script as my sig. >how do i modify my .slrnrc so it will execute the script? How about making something like following: #!/bin/sh random-sig-generator >.signature $(EDITOR) $1 and then set your editor (or preferably mail_editor_command and post_editor_command) in .slrnrc to point to that script. -- Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI> L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta tunnilta.
Re: slrn: random sig
Author: Paul A Sand
Date: Fri, 18 Sep 1998 00:00
Date: Fri, 18 Sep 1998 00:00
32 lines
1539 bytes
1539 bytes
>Xenon <REPLYTO@is.set.> informed
>news.software.readers with the following:
>>i have a random sig script which i want slrn to execute when i post
>>articles. [...]
I hoked up a possible solution yesterday, and it's my first attempt
at playing with slrn, so be kind and careful:
1) I have this in test.sl:
define post_hook ()
{
() = system ("/home/gravity/pas/bin/sigmaker /home/gravity/pas/sigs/news > /
tmp/.signature");
set_string_variable ("signature", "/tmp/.signature");
}
[Clearly you'd want to substitute your own script and args for mine]
2) I have in my .slrnrc file:
interpret "test.sl"
Seems to work OK.
--
-- Paul A. Sand | Choose mnemonic identifiers. If you can't
-- University of New Hampshire | remember what mnemonic means, you've got
-- pas@unh.edu | a problem.
-- http://pubpages.unh.edu/~pas | (Larry Wall, perlstyle man page)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads