Thread View: news.software.readers
25 messages
25 total messages
Started by Werner Kurator
Wed, 22 Sep 2004 11:22
[SLRN] autosig pipe setup?
Author: Werner Kurator
Date: Wed, 22 Sep 2004 11:22
Date: Wed, 22 Sep 2004 11:22
18 lines
1736 bytes
1736 bytes
As the subject tells it, I would like to use _autosig_ to generate sigs from a file, I did download autosig and set it up. My problem is that I just _recently_ started to use slrn. I read that I would need to write a pipe command so that slrn would pull random signatures. I did of course _google_ and came up with something that seemed to work: set post_editor_command ( in on line of course) "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" but this does not work. If someone has the solution please post it to the newsgroup _only_ so others might find it in the future too:-) Thanks Werner Kurator -- there was once a silly sigline but now....
Re: [SLRN] autosig pipe setup?
Author: raf
Date: Wed, 22 Sep 2004 17:27
Date: Wed, 22 Sep 2004 17:27
22 lines
1745 bytes
1745 bytes
on Wed, 22 Sep 2004 11:22:22 GMT, Werner Kurator wrote: > As the subject tells it, I would like to use _autosig_ to generate sigs > from a file, I did download autosig and set it up. My problem is > that I just _recently_ started to use slrn. I read that I > would need to write a pipe command so that slrn would pull random > signatures. I did of course _google_ and came up with something that > seemed to work: > set post_editor_command ( in on line of course) > "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" > but this does not work. > > If someone has the solution please post it to the newsgroup _only_ so > others might find it in the future too:-) > > Thanks > > Werner Kurator set post_editor_command "fortune -s > ~/.signature; vim '+/^$'" -- I've known him as a man, as an adolescent and as a child -- sometimes on the same day.
Re: [SLRN] autosig pipe setup?
Author: Werner Kurator
Date: Wed, 22 Sep 2004 19:56
Date: Wed, 22 Sep 2004 19:56
29 lines
2433 bytes
2433 bytes
raf in this very newsgroup news.software.readers used this <2rdr0nF19fq0rU1@uni-berlin.de> message-id on 2004-09-22 to announce the following statement: > on Wed, 22 Sep 2004 11:22:22 GMT, Werner Kurator wrote: >> As the subject tells it, I would like to use _autosig_ to generate sigs >> from a file, I did download autosig and set it up. My problem is >> that I just _recently_ started to use slrn. I read that I >> would need to write a pipe command so that slrn would pull random >> signatures. I did of course _google_ and came up with something that >> seemed to work: >> set post_editor_command ( in on line of course) >> "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" >> but this does not work. >> >> If someone has the solution please post it to the newsgroup _only_ so >> others might find it in the future too:-) >> >> Thanks >> >> Werner Kurator > set post_editor_command "fortune -s > ~/.signature; vim '+/^$'" > Thanks for your reply It seems that on my system I don't have fortune. When I post a message to a test.group no new sig-line is being generated. I searched and found in my other Linux Distribution in ../games/fortune is this what you mean? Werner Kurator -- there used to be a silly sigline .......................
Re: [SLRN] autosig pipe setup?
Author: raf
Date: Wed, 22 Sep 2004 21:15
Date: Wed, 22 Sep 2004 21:15
33 lines
2296 bytes
2296 bytes
on Wed, 22 Sep 2004 19:56:36 GMT, Werner Kurator wrote: > raf in this very newsgroup news.software.readers used this <2rdr0nF19fq0rU1@uni-berlin.de> message-id on 2004-09-22 to announce the following statement: >> on Wed, 22 Sep 2004 11:22:22 GMT, Werner Kurator wrote: >>> As the subject tells it, I would like to use _autosig_ to generate sigs >>> from a file, I did download autosig and set it up. My problem is >>> that I just _recently_ started to use slrn. I read that I >>> would need to write a pipe command so that slrn would pull random >>> signatures. I did of course _google_ and came up with something that >>> seemed to work: >>> set post_editor_command ( in on line of course) >>> "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" >>> but this does not work. >>> >>> If someone has the solution please post it to the newsgroup _only_ so >>> others might find it in the future too:-) >>> >>> Thanks >>> >>> Werner Kurator >> set post_editor_command "fortune -s > ~/.signature; vim '+/^$'" >> > Thanks for your reply > It seems that on my system I don't have fortune. When I post a message > to a test.group no new sig-line is being generated. > I searched and found in my other Linux Distribution in > ../games/fortune is this what you mean? > > Werner Kurator Yes, It's part of BSD games. What do you get when you type 'fortune'? -- "The voters have spoken, the bastards ..."
Re: [SLRN] autosig pipe setup?
Author: Allodoxaphobia
Date: Wed, 22 Sep 2004 22:17
Date: Wed, 22 Sep 2004 22:17
37 lines
2703 bytes
2703 bytes
On 22 Sep 2004 21:15:08 GMT, raf hath writ: > on Wed, 22 Sep 2004 19:56:36 GMT, Werner Kurator wrote: >> raf in this very newsgroup news.software.readers used this <2rdr0nF19fq0rU1@uni-berlin.de> message-id on 2004-09-22 to announce the following statement: >>> on Wed, 22 Sep 2004 11:22:22 GMT, Werner Kurator wrote: >>>> As the subject tells it, I would like to use _autosig_ to generate sigs >>>> from a file, I did download autosig and set it up. My problem is >>>> that I just _recently_ started to use slrn. I read that I >>>> would need to write a pipe command so that slrn would pull random >>>> signatures. I did of course _google_ and came up with something that >>>> seemed to work: >>>> set post_editor_command ( in on line of course) >>>> "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" >>>> but this does not work. >>>> >>>> If someone has the solution please post it to the newsgroup _only_ so >>>> others might find it in the future too:-) >>>> >>>> Thanks >>>> >>>> Werner Kurator >>> set post_editor_command "fortune -s > ~/.signature; vim '+/^$'" >>> >> Thanks for your reply >> It seems that on my system I don't have fortune. When I post a message >> to a test.group no new sig-line is being generated. >> I searched and found in my other Linux Distribution in >> ../games/fortune is this what you mean? >> > Yes, It's part of BSD games. What do you get when you type 'fortune'? Or, `locate fortune` ? Jonesy -- | Marvin L Jones | jonz | W3DHJ | linux | Gunnison, Colorado | @ | Jonesy | OS/2 __ | 7,703' -- 2,345m | config.com | DM68mn SK
Re: [SLRN] autosig pipe setup?
Author: raf
Date: Thu, 23 Sep 2004 00:47
Date: Thu, 23 Sep 2004 00:47
11 lines
1314 bytes
1314 bytes
on 22 Sep 2004 22:17:50 GMT, Allodoxaphobia wrote: >> Yes, It's part of BSD games. What do you get when you type 'fortune'? > > Or, `locate fortune` ? > > Jonesy Bloat Dude^_^. If you type fortune and nothing shows up, fortune is not installed. -- It's illegal in Wilbur, Washington, to ride an ugly horse.
Re: [SLRN] autosig pipe setup?
Author: Allodoxaphobia
Date: Thu, 23 Sep 2004 01:40
Date: Thu, 23 Sep 2004 01:40
25 lines
2124 bytes
2124 bytes
On 23 Sep 2004 00:47:02 GMT, raf hath writ: > on 22 Sep 2004 22:17:50 GMT, Allodoxaphobia wrote: >>> Yes, It's part of BSD games. What do you get when you type 'fortune'? >> >> Or, `locate fortune` ? >> >> Jonesy > Bloat Dude^_^. If you type fortune and nothing shows up, fortune is not > installed. Dooh, Dude^_^! If you're running on xxxxBSD, you may find it in the /usr/ports/.... sub-directories -- or in a RPM repository on a MDK or RH box. It might be a trivial install for the OP. Or, it might be (tho' I know not why) in /sbin , /usr/sbin/ or someplace that ain't in the $PATH. I once had an ISP that thought himself 'clever' and he hid 'things' in 'strange' places. He never caught on to `locate`. (On a related matter: That ISP is no longer with us.) Jonesy -- | Marvin L Jones | jonz | W3DHJ | linux | Gunnison, Colorado | @ | Jonesy | OS/2 __ | 7,703' -- 2,345m | config.com | DM68mn SK
Re: [SLRN] autosig pipe setup?
Author: W. Citoan
Date: Thu, 23 Sep 2004 02:17
Date: Thu, 23 Sep 2004 02:17
22 lines
1716 bytes
1716 bytes
On Wed, 22 Sep 2004 11:22:22 GMT, Werner Kurator wrote: > > set post_editor_command ( in on line of course) > "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" > but this does not work. First, did you verify autosig is working? Run the autosig command: /home/werner/autosig/autosig from the terminal to make sure it works. Second, slrn defaults to a signature file of: ~/.signature on *nix systems. You either need to change your command above to pipe to that instead or tell slrn to use a different file: set signature "/home/werner/.sig" - W. Citoan -- If a man can write a better book, preach a better sermon, or make a better mouse-trap than his neighbor, though he builds his house in the woods, the world will make a beaten path to his door. -- Ralph Waldo Emerson
Re: [SLRN] autosig pipe setup?
Author: Werner Kurator
Date: Thu, 23 Sep 2004 05:22
Date: Thu, 23 Sep 2004 05:22
41 lines
3075 bytes
3075 bytes
raf in this very newsgroup news.software.readers used this <2re8arF18u80qU1@uni-berlin.de> message-id on 2004-09-22 to announce the following statement: > on Wed, 22 Sep 2004 19:56:36 GMT, Werner Kurator wrote: >> raf in this very newsgroup news.software.readers used this <2rdr0nF19fq0rU1@uni-berlin.de> message-id on 2004-09-22 to announce the following statement: >>> on Wed, 22 Sep 2004 11:22:22 GMT, Werner Kurator wrote: >>>> As the subject tells it, I would like to use _autosig_ to generate sigs >>>> from a file, I did download autosig and set it up. My problem is >>>> that I just _recently_ started to use slrn. I read that I >>>> would need to write a pipe command so that slrn would pull random >>>> signatures. I did of course _google_ and came up with something that >>>> seemed to work: >>>> set post_editor_command ( in on line of course) >>>> "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" >>>> but this does not work. >>>> >>>> If someone has the solution please post it to the newsgroup _only_ so >>>> others might find it in the future too:-) >>>> >>>> Thanks >>>> >>>> Werner Kurator >>> set post_editor_command "fortune -s > ~/.signature; vim '+/^$'" >>> >> Thanks for your reply >> It seems that on my system I don't have fortune. When I post a message >> to a test.group no new sig-line is being generated. >> I searched and found in my other Linux Distribution in >> ../games/fortune is this what you mean? >> >> Werner Kurator > Yes, It's part of BSD games. What do you get when you type 'fortune'? > just the usual -bash: fortune : command not found While I was searching on the Internet on how to setup random signatures I found a package called _autosig_. This I wanted to use. Because of complete of lack of how to write this i am stuck :-/ Werner Kurator -- there used to be a silly sigline .......................
Re: [SLRN] autosig pipe setup?
Author: Werner Kurator
Date: Thu, 23 Sep 2004 06:21
Date: Thu, 23 Sep 2004 06:21
40 lines
2456 bytes
2456 bytes
W. Citoan in this very newsgroup news.software.readers used this <slrncl4ch8.3r0.wcitoan@wcitoan-via.supernews.com> message-id on 2004-09-23 to announce the following statement: > On Wed, 22 Sep 2004 11:22:22 GMT, Werner Kurator wrote: >> >> set post_editor_command ( in on line of course) >> "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" >> but this does not work. > > First, did you verify autosig is working? Run the autosig command: > /home/werner/autosig/autosig > from the terminal to make sure it works. > Not knowing on how to _test_ the setup I asked here :-) Now I can tell that autosig is working, as I do get a output like Auto-sig Version2.3 I even included in my .bash_profile the PATH to autosig taking the advice from another post I found on the net. > Second, slrn defaults to a signature file of: > ~/.signature I checked and set it now to above > on *nix systems. You either need to change your command above to pipe > to that instead or tell slrn to use a different file: > set signature "/home/werner/.sig" do you see anything wrong in the rest of the command? "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" > - W. Citoan Thanks for your reply :-) Werner Kurator -- there used to be a silly sigline .......................
Re: [SLRN] autosig pipe setup?
Author: Werner Kurator
Date: Thu, 23 Sep 2004 06:46
Date: Thu, 23 Sep 2004 06:46
52 lines
3106 bytes
3106 bytes
Werner Kurator in this very newsgroup news.software.readers used this <slrncl4r1o.19n.werner@not_known_to.me> message-id on 2004-09-23 to announce the following statement: > W. Citoan in this very newsgroup news.software.readers used this <slrncl4ch8.3r0.wcitoan@wcitoan-via.supernews.com> message-id on 2004-09-23 to announce the following statement: >> On Wed, 22 Sep 2004 11:22:22 GMT, Werner Kurator wrote: >>> >>> set post_editor_command ( in on line of course) >>> "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" >>> but this does not work. >> >> First, did you verify autosig is working? Run the autosig command: >> /home/werner/autosig/autosig >> from the terminal to make sure it works. >> > > Not knowing on how to _test_ the setup I asked here :-) > Now I can tell that autosig is working, as I do get a output like > > Auto-sig Version2.3 Just run another test post to a test-group, I discoverd that autosig puts its version and other stuff ( the same stuff one would get by typing auto-sig on the commandpromt) into .signature, yet .signature itself is not included when posting. Maybe auto-sig needs to know *which* file it should read to quote from? > I even included in my .bash_profile the PATH to autosig taking the > advice from another post I found on the net. > >> Second, slrn defaults to a signature file of: >> ~/.signature > > I checked and set it now to above > >> on *nix systems. You either need to change your command above to pipe >> to that instead or tell slrn to use a different file: >> set signature "/home/werner/.sig" > > do you see anything wrong in the rest of the command? > > "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" > >> - W. Citoan > > Thanks for your reply :-) > > Werner Kurator -- there used to be a silly sigline .......................
Re: [SLRN] autosig pipe setup?
Author: W. Citoan
Date: Thu, 23 Sep 2004 11:21
Date: Thu, 23 Sep 2004 11:21
52 lines
3069 bytes
3069 bytes
On Thu, 23 Sep 2004 06:21:41 GMT, Werner Kurator wrote: > W. Citoan in this very newsgroup news.software.readers used this > <slrncl4ch8.3r0.wcitoan@wcitoan-via.supernews.com> message-id on > 2004-09-23 to announce the following statement: > > > > First, did you verify autosig is working? Run the autosig command: > > /home/werner/autosig/autosig from the terminal to make sure it > > works. > > > > Not knowing on how to _test_ the setup I asked here :-) Now I can > tell that autosig is working, as I do get a output like > > Auto-sig Version2.3 Is that all that is output? If it's not outputting an actual signature, then there will be nothing else in the file. If you don't get a signature, then you have a problem with autosig that needs to be fixed. You'll have to find someone to help you with that and it probably won't be in this group. As the other person suggested, I'd install fortune as that is much more widely used and known. > I even included in my .bash_profile the PATH to autosig taking the > advice from another post I found on the net. Not necessary for this case as you're providing the full path in the command. > > Second, slrn defaults to a signature file of: ~/.signature > > I checked and set it now to above > > > on *nix systems. You either need to change your command above to > > pipe to that instead or tell slrn to use a different file: set > > signature "/home/werner/.sig" > > do you see anything wrong in the rest of the command? > > "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" You have confused me. You said "set it now to above" where the above says ~/.signature, but your command still says ~/.sig. Did you change slrn to use ~/.sig or the command to use ~/.signature? You need to do one of the two. - W. Citoan -- If a man can write a better book, preach a better sermon, or make a better mouse-trap than his neighbor, though he builds his house in the woods, the world will make a beaten path to his door. -- Ralph Waldo Emerson
Re: [SLRN] autosig pipe setup?
Author: Werner Kurator
Date: Thu, 23 Sep 2004 12:44
Date: Thu, 23 Sep 2004 12:44
101 lines
4915 bytes
4915 bytes
W. Citoan in this very newsgroup news.software.readers used this <slrncl5cdq.36k.wcitoan@wcitoan-via.supernews.com> message-id on 2004-09-23 to announce the following statement: > On Thu, 23 Sep 2004 06:21:41 GMT, Werner Kurator wrote: >> W. Citoan in this very newsgroup news.software.readers used this >> <slrncl4ch8.3r0.wcitoan@wcitoan-via.supernews.com> message-id on >> 2004-09-23 to announce the following statement: >> > >> > First, did you verify autosig is working? Run the autosig command: >> > /home/werner/autosig/autosig from the terminal to make sure it >> > works. >> > >> >> Not knowing on how to _test_ the setup I asked here :-) Now I can >> tell that autosig is working, as I do get a output like >> >> Auto-sig Version2.3 > > Is that all that is output? If it's not outputting an actual signature, > then there will be nothing else in the file. > > If you don't get a signature, then you have a problem with autosig that > needs to be fixed. You'll have to find someone to help you with that > and it probably won't be in this group. As the other person suggested, > I'd install fortune as that is much more widely used and known. > >> I even included in my .bash_profile the PATH to autosig taking the >> advice from another post I found on the net. > > Not necessary for this case as you're providing the full path in the > command. > >> > Second, slrn defaults to a signature file of: ~/.signature >> >> I checked and set it now to above >> >> > on *nix systems. You either need to change your command above to >> > pipe to that instead or tell slrn to use a different file: set >> > signature "/home/werner/.sig" >> >> do you see anything wrong in the rest of the command? >> >> "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" > > You have confused me. You said "set it now to above" where the above > says ~/.signature, but your command still says ~/.sig. Did you change > slrn to use ~/.sig or the command to use ~/.signature? You need to do > one of the two. Sorry this was a typo :-/ it is set to .signature Thanks for replying:-) after I read your answer, i was able to hunt down the problem here. $ apt-cache search returned a lot of stuff that was not relevant to my problem here so i stuck with autosig. Here is what I had to do to get it going: ------ Files that needed to be changed are: 1) dotsignc 2) dotsignature In /home/user/.slrnrc the path to the file needs to be named exactly /home/user/autosig autosig's README was a little unclear about it the autosig-daemon (autosigd) returned a error autosig not found, fix: /path/to/autosig/autosig in the tools ie. chsig, autosig, fortune, etc I did the same, autosig does have a file fortune in it as a replacement. there is only one small glitch i could not figure out yet, theres is a file that would put the name (above the signature) which should remain the same is not being added to the setup. I'll send the above report to the maintainer who knows I just run into a strange bug, or maybe this problem was caused because i installed it in /home/werner/autosig and not somehere in /usr/local/foo > > - W. Citoan Werner Kurator -- An attorney was defending his client against a charge of first-degree murder. "Your Honor, my client is accused of stuffing his lover's mutilated body into a suitcase and heading for the Mexican border. Just north of Tijuana a cop spotted her hand sticking out of the suitcase. Now, I would like to stress that my client is *not* a murderer. A sloppy packer, maybe..."
Re: [SLRN] autosig pipe setup?
Author: Rinaldi J. Montessi
Date: Thu, 23 Sep 2004 14:27
Date: Thu, 23 Sep 2004 14:27
26 lines
2366 bytes
2366 bytes
On Wed, 22 Sep 2004 11:22:22 GMT, Werner Kurator wrote: > As the subject tells it, I would like to use _autosig_ to generate sigs > from a file, I did download autosig and set it up. My problem is > that I just _recently_ started to use slrn. I read that I > would need to write a pipe command so that slrn would pull random > signatures. I did of course _google_ and came up with something that > seemed to work: > set post_editor_command ( in on line of course) > "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" > but this does not work. > > If someone has the solution please post it to the newsgroup _only_ so > others might find it in the future too:-) Instead of running an app to create a .signature, why not just create a pipe? Assumes you have fortune installed. while true; do sleep 60; fortune -s >~/.signature; done & You can change the sleep interval, of course. The -s keeps it short for sig standards. Rinaldi -- We may not return the affection of those who like us, but we always respect their good judgement.
Re: [SLRN] autosig pipe setup?
Author: Werner Kurator
Date: Thu, 23 Sep 2004 16:40
Date: Thu, 23 Sep 2004 16:40
54 lines
3343 bytes
3343 bytes
Rinaldi J. Montessi in this very newsgroup news.software.readers used this <slrncl5nan.lb3.rinaldi@Senior.Envision> message-id on 2004-09-23 to announce the following statement: > On Wed, 22 Sep 2004 11:22:22 GMT, Werner Kurator wrote: >> As the subject tells it, I would like to use _autosig_ to generate sigs >> from a file, I did download autosig and set it up. My problem is >> that I just _recently_ started to use slrn. I read that I >> would need to write a pipe command so that slrn would pull random >> signatures. I did of course _google_ and came up with something that >> seemed to work: >> set post_editor_command ( in on line of course) >> "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" >> but this does not work. >> >> If someone has the solution please post it to the newsgroup _only_ so >> others might find it in the future too:-) > > Instead of running an app to create a .signature, why not just create a > pipe? Assumes you have fortune installed. Thanks for replying :-) Actually I wanted to set up a pipe. But unfortunately I do not have a clue how to do this. I got me autosig (and it contains a script to simulate fortune) > while true; do sleep 60; fortune -s >~/.signature; done & where do I put this, in a own file or in .slrnrc? Sorry that I asked again:-) > You can change the sleep interval, of course. The -s keeps it short for sig > standards. > > Rinaldi on my test-user I got it right, haven't changed it in this one yet Werner Kurator :-) I know the sig is not to _standards_ but it shows what I got as fortune itself is not installed on this PC. -- Auto-sig v2.3 Written by Feline (feline@irendi.com) - Irendi Software Credits - Yen-Ming Lee (leeym@bsd.ce.ntu.edu.tw) - detect if autosig is running Auto-sig invoked as '/home/werner/autosig/autosig' Usage :- /home/werner/autosig/autosig quoteFilename delimiter header sig_file [daemon] [create] quoteFile = file of *quotes* delimiter = characters which delimit quotes header = file contents will form the top of the sig file. sigFile = file to change, .plan or .sig say. daemon = daemon (run in daemon mode).
Re: [SLRN] autosig pipe setup?
Author: Ben Shimmin
Date: Thu, 23 Sep 2004 17:14
Date: Thu, 23 Sep 2004 17:14
19 lines
1698 bytes
1698 bytes
Werner Kurator <werner@searching-for.peace>:
[...]
> the autosig-daemon (autosigd) returned a error autosig not found,
You installed a daemon just for random .signatures? Sounds like overkill
to me. The following Perl serves me just fine:
perl -ne 'BEGIN{$/=""}chop,$p=$_ if rand++$n<1;END{print$p}' sigs >.signature
Put the random .signatures you want in a file called `sigs', separated
by a blank line each time.
b.
--
Ben Shimmin (bas@bas.me.uk) <URL:http://bas.me.uk/>
<URL:http://gpg.bas.me.uk/>
Re: [SLRN] autosig pipe setup?
Author: Werner Kurator
Date: Thu, 23 Sep 2004 18:17
Date: Thu, 23 Sep 2004 18:17
34 lines
2469 bytes
2469 bytes
Ben Shimmin in this very newsgroup news.software.readers used this <slrn.2004-09-23.17-06-37@cruel-samoan.bas.me.uk> message-id on 2004-09-23 to announce the following statement:
> Werner Kurator <werner@searching-for.peace>:
>
> [...]
>
>> the autosig-daemon (autosigd) returned a error autosig not found,
>
> You installed a daemon just for random .signatures? Sounds like overkill
> to me. The following Perl serves me just fine:
>
> perl -ne 'BEGIN{$/=""}chop,$p=$_ if rand++$n<1;END{print$p}' sigs >.signature
Thanks for your reply :-)
So now I need to learn _Perlscripting_ to implement this.
I _really_ appreciate you guys to take your time who gave _working_
solutions, my problem is that I know _absolute_ nothing about
how to write scrips in Linux.
So again with the above line I hit a wall, do I put it into the
~/.slrnrc or in a separate file and etc.
>
> Put the random .signatures you want in a file called `sigs', separated
> by a blank line each time.
>
> b.
Again many thanks
Werner Kurator
--
there used to be a silly sig-line .... :-/
Re: [SLRN] autosig pipe setup?
Author: Rinaldi J. Montessi
Date: Thu, 23 Sep 2004 18:33
Date: Thu, 23 Sep 2004 18:33
43 lines
2948 bytes
2948 bytes
On Thu, 23 Sep 2004 16:40:24 GMT, Werner Kurator wrote: > Rinaldi J. Montessi in this very newsgroup news.software.readers used this <slrncl5nan.lb3.rinaldi@Senior.Envision> message-id on 2004-09-23 to announce the following statement: [...] >> Instead of running an app to create a .signature, why not just create a >> pipe? Assumes you have fortune installed. > > Thanks for replying :-) > > Actually I wanted to set up a pipe. > > But unfortunately I do not have a clue how to do this. > I got me autosig (and it contains a script to simulate fortune) > >> while true; do sleep 60; fortune -s >~/.signature; done & > > where do I put this, in a own file or in .slrnrc? > Sorry that I asked again:-) You can launch it from wherever you'd like. You're .xinitrc is one option, or as I do, make an executable script and launch it whenever. I call mine signature_cmd and it consists of that one line. If you call it automatically from somewhere you might want to test to make sure it's not already running. >> You can change the sleep interval, of course. The -s keeps it short for sig >> standards. >> > on my test-user I got it right, haven't changed it in this one yet > > I know the sig is not to _standards_ but it shows what I got as fortune > itself is not installed on this PC. What's your distro? Regardless, fortune should be available. If your sig is not standard some of the net weenies will grouse about it. Rightly so. Rinaldi -- Twenty Percent of Zero is Better than Nothing. -- Walt Kelly
Re: [SLRN] autosig pipe setup?
Author: Josef Oswald
Date: Thu, 23 Sep 2004 18:58
Date: Thu, 23 Sep 2004 18:58
60 lines
3591 bytes
3591 bytes
Rinaldi J. Montessi in this very newsgroup news.software.readers used this <slrncl65ob.n1q.rinaldi@Senior.Envision>> message-ID on 2004-09-23 to surprise the astonished audience: > On Thu, 23 Sep 2004 16:40:24 GMT, Werner Kurator wrote: >> Rinaldi J. Montessi in this very newsgroup news.software.readers used this <slrncl5nan.lb3.rinaldi@Senior.Envision> message-id on 2004-09-23 to announce the following statement: > > [...] > >>> Instead of running an app to create a .signature, why not just create a >>> pipe? Assumes you have fortune installed. >> >> Thanks for replying :-) >> >> Actually I wanted to set up a pipe. >> >> But unfortunately I do not have a clue how to do this. >> I got me autosig (and it contains a script to simulate fortune) >> >>> while true; do sleep 60; fortune -s >~/.signature; done & >> >> where do I put this, in a own file or in .slrnrc? >> Sorry that I asked again:-) > > You can launch it from wherever you'd like. You're .xinitrc is one option, > or as I do, make an executable script and launch it whenever. I call mine > signature_cmd and it consists of that one line. If you call it > automatically from somewhere you might want to test to make sure it's not > already running. Thanks :-) _Now_ I see the light at the end of _this_ tunnel :-) >>> You can change the sleep interval, of course. The -s keeps it short for sig >>> standards. >>> >> on my test-user I got it right, haven't changed it in this one yet >> >> I know the sig is not to _standards_ but it shows what I got as fortune >> itself is not installed on this PC. > > What's your distro? Regardless, fortune should be available. I dare to say Debian (not because Debian is not good) but I am no hacker at all, that someone like me get a distro that needs so much knowledge. and no fortune is not here because i did not install any games. I do have a second Distro Mandrake 9.0 and there I found fortune. Mandrake is just a backup, as I put all my effort to set up this Debian distro as the one I will use the most. That saved my butt a few times :-) > > If your sig is not standard some of the net weenies will grouse about it. > Rightly so. I only used it for that post because it was showing what I used. > > Rinaldi Werner Kurator -- sig baah wahhh no sig :-(
Re: [SLRN] autosig pipe setup?
Author: Ben Shimmin
Date: Thu, 23 Sep 2004 19:16
Date: Thu, 23 Sep 2004 19:16
56 lines
2944 bytes
2944 bytes
Werner Kurator <werner@searching-for.peace>:
> Ben Shimmin:
>> Werner Kurator <werner@searching-for.peace>:
>>
>> [...]
>>
>>> the autosig-daemon (autosigd) returned a error autosig not found,
>>
>> You installed a daemon just for random .signatures? Sounds like overkill
>> to me. The following Perl serves me just fine:
perl -ne 'BEGIN{$/=""}chop,$p=$_ if rand++$n<1;END{print$p}' sigs >.signature
> Thanks for your reply :-)
No problem.
> So now I need to learn _Perlscripting_ to implement this.
Not at all. The above should `just work'.
> I _really_ appreciate you guys to take your time who gave _working_
> solutions, my problem is that I know _absolute_ nothing about
> how to write scrips in Linux.
>
> So again with the above line I hit a wall, do I put it into the
> ~/.slrnrc or in a separate file and etc.
Save the above Perl in a separate file called, for example, `sigmaker', in
your home directory. Make sure it's executable -- run it (by typing
`./sigmaker' from your bash prompt) to test that it works, and check that it
makes a nice different .signature file each time it's run (by doing `cat
.signature'). Remember that your file with your signature quotes (called
`sigs' if you use the above) needs to have a blank line between each
individual quote, like this:
`This is a funny quote.'
`This is another funny quote.'
`This is a third funny quote.'
And so on. That's the hard bit. Then all you need to do is to put
set editor_command "/home/werner/sigmaker; emacs"
in your .slrnrc (`emacs' can, of course, be `vi', or whatever your preferred
editor is).
That should work perfectly.
b.
--
Ben Shimmin (bas@bas.me.uk) <URL:http://bas.me.uk/>
<URL:http://gpg.bas.me.uk/>
Re: [SLRN] autosig pipe setup?
Author: Werner Kurator
Date: Thu, 23 Sep 2004 19:18
Date: Thu, 23 Sep 2004 19:18
25 lines
2213 bytes
2213 bytes
Rinaldi J. Montessi in this very newsgroup news.software.readers used this <slrncl65ob.n1q.rinaldi@Senior.Envision> message-id on 2004-09-23 to announce the following statement: > On Thu, 23 Sep 2004 16:40:24 GMT, Werner Kurator wrote: >> Rinaldi J. Montessi in this very newsgroup news.software.readers used this <slrncl5nan.lb3.rinaldi@Senior.Envision> message-id on 2004-09-23 to announce the following statement: > > [...] > > You can launch it from wherever you'd like. You're .xinitrc is one option, > or as I do, make an executable script and launch it whenever. I call mine > signature_cmd and it consists of that one line. If you call it > automatically from somewhere you might want to test to make sure it's not > already running. this works :-) > > > Rinaldi Werner Kurator -- Court Room Quotes Q: "Mr. Slatery, you went on a rather elaborate honeymoon, didn't you?" A: "I went to Europe, Sir" Q: "And you took your new wife?"
Re: [SLRN] autosig pipe setup?
Author: Ben Shimmin
Date: Thu, 23 Sep 2004 19:26
Date: Thu, 23 Sep 2004 19:26
22 lines
1735 bytes
1735 bytes
Josef Oswald <J.Oswald@pure_joy_gods.love>:
[...]
> I dare to say Debian (not because Debian is not good) but I am no hacker
> at all, that someone like me get a distro that needs so much knowledge.
I use Debian too (woody on my server and sid on my laptop at home). It's
probably not great for a beginner, but you'll certainly learn a lot.
As root, type:
apt-get install fortunes
This will install everything you need to be able just to type `fortune'
to get a random fortune cookie.
b.
--
Ben Shimmin (bas@bas.me.uk) <URL:http://bas.me.uk/>
<URL:http://gpg.bas.me.uk/>
Re: [SLRN] autosig pipe setup?
Author: Werner Kurator
Date: Thu, 23 Sep 2004 20:07
Date: Thu, 23 Sep 2004 20:07
29 lines
2257 bytes
2257 bytes
Ben Shimmin in this very newsgroup news.software.readers used this <slrn.2004-09-23.19-19-13@cruel-samoan.bas.me.uk> message-id on 2004-09-23 to announce the following statement: > Josef Oswald <J.Oswald@pure_joy_gods.love>: > > [...] > >> I dare to say Debian (not because Debian is not good) but I am no hacker >> at all, that someone like me get a distro that needs so much knowledge. > > I use Debian too (woody on my server and sid on my laptop at home). It's > probably not great for a beginner, but you'll certainly learn a lot. > > As root, type: > > apt-get install fortunes > > This will install everything you need to be able just to type `fortune' > to get a random fortune cookie. Thanks again :-) > > b. > -- Consistently separating words by spaces became a general custom about the tenth century A.D., and lasted until about 1957, when FORTRAN abandoned the practice. -- Sun FORTRAN Reference Manual
Re: [SLRN] autosig pipe setup?
Author: raf
Date: Thu, 23 Sep 2004 21:36
Date: Thu, 23 Sep 2004 21:36
28 lines
2056 bytes
2056 bytes
on 23 Sep 2004 01:40:20 GMT, Allodoxaphobia wrote: > On 23 Sep 2004 00:47:02 GMT, raf hath writ: >> on 22 Sep 2004 22:17:50 GMT, Allodoxaphobia wrote: >>>> Yes, It's part of BSD games. What do you get when you type 'fortune'? >>> >>> Or, `locate fortune` ? >>> >>> Jonesy >> Bloat Dude^_^. If you type fortune and nothing shows up, fortune is not >> installed. > > Dooh, Dude^_^! If you're running on xxxxBSD, you may find it in > the /usr/ports/.... sub-directories -- or in a RPM repository on > a MDK or RH box. It might be a trivial install for the OP. > Or, it might be (tho' I know not why) in /sbin , /usr/sbin/ or > someplace that ain't in the $PATH. > > I once had an ISP that thought himself 'clever' and he hid 'things' > in 'strange' places. He never caught on to `locate`. > (On a related matter: That ISP is no longer with us.) > > Jonesy I stand corrected. But I subscribe to KISS and unlike your now defunct ISP will never hide IT from you. Later. -- Don't be humble ... you're not that great. -- Golda Meir
Re: [SLRN] autosig pipe setup?
Author: Sven Guckes
Date: Wed, 01 Dec 2004 21:05
Date: Wed, 01 Dec 2004 21:05
14 lines
1311 bytes
1311 bytes
* Werner Kurator <werner@searching-for.peace> [2004-09-22]: > set post_editor_command ( in on line of course) > "/home/werner/autosig/autosig >~/.sig; vi -c +%d %s -tmp" > but this does not work. try this: set post_editor_command "autosig > $HOME/.signature; vi -c +%d %s -tmp" mind you, autosig should be in ~/bin and executable and ~/bin should be in the $PATH. and if you don't make your sigs McQ then you will be lucky if we simply killfile you. Sven
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