Thread View: news.software.readers
20 messages
20 total messages
Started by Šime Ramov
Mon, 15 Feb 2010 21:17
[slrn] Multiple commands in 'editor_command' variable
Author: Šime Ramov
Date: Mon, 15 Feb 2010 21:17
Date: Mon, 15 Feb 2010 21:17
11 lines
1449 bytes
1449 bytes
I want to accomplish something like the following:
set editor_command "purgemail %s && vim %s"
Is there a simple way to get this working in slrn? `purgemail` is a perl
script (in $PATH) which does some basic formatting and cleaning. I use
the exact same setting in mutt for my editor command and it works
without issues.
According to slrn manual, the value of this variable should be used as a
shell command so I don't know where's the catch.
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Mike Yetto
Date: Mon, 15 Feb 2010 21:55
Date: Mon, 15 Feb 2010 21:55
23 lines
2347 bytes
2347 bytes
Šime Ramov <s@ramov.com> writes and having writ moves on. > I want to accomplish something like the following: > > set editor_command "purgemail %s && vim %s" > > Is there a simple way to get this working in slrn? `purgemail` is a perl > script (in $PATH) which does some basic formatting and cleaning. I use > the exact same setting in mutt for my editor command and it works > without issues. > What happend when you tried it? > According to slrn manual, the value of this variable should be used as a > shell command so I don't know where's the catch. I couldn't tell you where the catch is as I never tried anything like that. Mike "hope it's not Catch 22" Yetto -- In theory, theory and practice are the same. In practice they are not.
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Christian Schneider
Date: Mon, 15 Feb 2010 22:09
Date: Mon, 15 Feb 2010 22:09
21 lines
2343 bytes
2343 bytes
Thus spake Šime Ramov (s@ramov.com): > > I want to accomplish something like the following: > > set editor_command "purgemail %s && vim %s" > > Is there a simple way to get this working in slrn? `purgemail` is a perl > script (in $PATH) which does some basic formatting and cleaning. I use > the exact same setting in mutt for my editor command and it works > without issues. > > According to slrn manual, the value of this variable should be used as a > shell command so I don't know where's the catch. Maybe | set editor_command "/path/to/purgemail && vim %s" -- Linux is for people who hate Windows | Christian 'strcat' Schneider FreeBSD is for people who hate Linux | http://www.strcat.de/ NetBSD is for people who hate OpenBSD | http://www.strcat.de/blog/ OpenBSD is for people who hate everything | http://www.strcat.de/rtfm/
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Šime Ramov
Date: Mon, 15 Feb 2010 22:21
Date: Mon, 15 Feb 2010 22:21
5 lines
1296 bytes
1296 bytes
* Christian Schneider <strcat@gmx.net> [2010-02-15 23:09+0100]: > set editor_command "/path/to/purgemail && vim %s" No, purgemail script expects a file, so first 'purgemail %s' is needed and then standard 'EDITOR %s' afterwards.
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Šime Ramov
Date: Mon, 15 Feb 2010 22:23
Date: Mon, 15 Feb 2010 22:23
4 lines
1259 bytes
1259 bytes
* Mike Yetto <myetto1@nycap.invalid> [2010-02-15 22:55+0100]: > What happend when you tried it? Ah, forgot to mention that. I get 'Invalid editor definition.' printed.
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Adam Funk
Date: Mon, 15 Feb 2010 22:25
Date: Mon, 15 Feb 2010 22:25
38 lines
2180 bytes
2180 bytes
On 2010-02-15, Šime Ramov wrote: > I want to accomplish something like the following: > > set editor_command "purgemail %s && vim %s" > > Is there a simple way to get this working in slrn? `purgemail` is a perl > script (in $PATH) which does some basic formatting and cleaning. I use > the exact same setting in mutt for my editor command and it works > without issues. > > According to slrn manual, the value of this variable should be used as a > shell command so I don't know where's the catch. If I tried that and it didn't work, my next guess would be writing a purgemail_vim.sh script like this (disclaimer: I'm making this up as I go along): #v+ #!/bin/bash purgemail $1 || exit 1 vim $1 #v- and using #v+ set editor_command "purgemail_vim.sh %s" #v- Does anyone see anything wrong wit that? -- ...the reason why so many professional artists drink a lot is not necessarily very much to do with the artistic temperament, etc. It is simply that they can afford to, because they can normally take a large part of a day off to deal with the ravages. [Amis _On Drink_]
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Šime Ramov
Date: Mon, 15 Feb 2010 22:33
Date: Mon, 15 Feb 2010 22:33
4 lines
1182 bytes
1182 bytes
* Adam Funk <a24061@ducksburg.com> [2010-02-15 23:25+0100]: > Does anyone see anything wrong wit that? Nope :) Thanks!
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Mike Yetto
Date: Mon, 15 Feb 2010 22:42
Date: Mon, 15 Feb 2010 22:42
15 lines
2388 bytes
2388 bytes
Šime Ramov <s@ramov.com> writes and having writ moves on. > * Mike Yetto <myetto1@nycap.invalid> [2010-02-15 22:55+0100]: >> What happend when you tried it? > > Ah, forgot to mention that. I get 'Invalid editor definition.' printed. This is only slightly better than kicking the tires, but you could try... set editor_command "purgemail '%s' && vim '%s'" Mike "if that works, I was just being modest" Yetto -- In theory, theory and practice are the same. In practice they are not.
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Šime Ramov
Date: Mon, 15 Feb 2010 22:51
Date: Mon, 15 Feb 2010 22:51
6 lines
1272 bytes
1272 bytes
* Mike Yetto <myetto1@nycap.invalid> [2010-02-15 23:42+0100]: > This is only slightly better than kicking the tires, but you could > try [...] I tried that originally too, but it didn't work. I've now used Adam's wrapper script.
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Mike Yetto
Date: Mon, 15 Feb 2010 23:07
Date: Mon, 15 Feb 2010 23:07
17 lines
2467 bytes
2467 bytes
Šime Ramov <s@ramov.com> writes and having writ moves on. > * Mike Yetto <myetto1@nycap.invalid> [2010-02-15 23:42+0100]: >> This is only slightly better than kicking the tires, but you could >> try [...] > > I tried that originally too, but it didn't work. I've now used Adam's > wrapper script. That approach was my first thought, but where's the fun in solving the problem so quickly? Don't we use slrn or tin or leafnode or computers for that matter, just so we can fix them constantly? Mike "if it ain't broke, tweak it" Yetto -- In theory, theory and practice are the same. In practice they are not.
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Šime Ramov
Date: Tue, 16 Feb 2010 09:59
Date: Tue, 16 Feb 2010 09:59
6 lines
1624 bytes
1624 bytes
* Mike Yetto <myetto1@nycap.invalid> [2010-02-16 00:07+0100]: > That approach was my first thought, but where's the fun in solving the > problem so quickly? I guess slrn doesn't support either the && or ; notation, or having two %s placeholders.
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Christian Schneider
Date: Tue, 16 Feb 2010 10:45
Date: Tue, 16 Feb 2010 10:45
24 lines
2622 bytes
2622 bytes
Thus spake Šime Ramov (s@ramov.com): > > * Mike Yetto <myetto1@nycap.invalid> [2010-02-16 00:07+0100]: >> That approach was my first thought, but where's the fun in solving the >> problem so quickly? > > I guess slrn doesn't support either the && or ; notation, or having two > %s placeholders. ``;'' works. | set editor_command "/home/username/foo.sh ; vim %s" | set signature "/home/username/.nnsig" and ,----[ ~/.foo.sh ] | #!/bin/sh | echo `date` > /home/username/.nnsig `---- -- Linux is for people who hate Windows | Christian 'strcat' Schneider FreeBSD is for people who hate Linux | http://www.strcat.de/ NetBSD is for people who hate OpenBSD | http://www.strcat.de/blog/ OpenBSD is for people who hate everything | http://www.strcat.de/rtfm/
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Šime Ramov
Date: Tue, 16 Feb 2010 10:52
Date: Tue, 16 Feb 2010 10:52
4 lines
1300 bytes
1300 bytes
* Christian Schneider <strcat@gmx.net> [2010-02-16 11:45+0100]: > ``;'' works. Then two %s's doesn't.
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Adam Funk
Date: Tue, 16 Feb 2010 11:10
Date: Tue, 16 Feb 2010 11:10
26 lines
2318 bytes
2318 bytes
On 2010-02-16, Šime Ramov wrote: > * Mike Yetto <myetto1@nycap.invalid> [2010-02-16 00:07+0100]: >> That approach was my first thought, but where's the fun in solving the >> problem so quickly? > > I guess slrn doesn't support either the && or ; notation, or having two > %s placeholders. I suspect (but I'm not sure) that slrn does the substitution (there's also a %d for line number [1]) and then passes the result to the shell in such a way that the shell expects one command with arguments rather than a "line" of shell commands. (But I could be wrong.) I think there's a technical term for this, and would appreciate it if anyone can refresh my memory. [1] http://slrn.sourceforge.net/docs/slrn-manual-6.html#ss6.20 -- In the 1970s, people began receiving utility bills for -£999,999,996.32 and it became harder to sustain the myth of the infallible electronic brain. (Stob 2001)
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Adam Funk
Date: Tue, 16 Feb 2010 11:11
Date: Tue, 16 Feb 2010 11:11
28 lines
2163 bytes
2163 bytes
On 2010-02-15, Mike Yetto wrote:
> Šime Ramov <s@ramov.com> writes and having writ moves on.
>> I tried that originally too, but it didn't work. I've now used Adam's
>> wrapper script.
It worked? That was lucky. ;-)
> That approach was my first thought, but where's the fun in
> solving the problem so quickly? Don't we use slrn or tin or
> leafnode or computers for that matter, just so we can fix them
> constantly?
>
> Mike "if it ain't broke, tweak it" Yetto
>From Clifford Stoll's _Silicon Snake Oil_:
I spend almost as much time figuring out what's wrong with my
computer as I do actually using it. Networked software,
especially, requires frequent updates and maintenance, all of
which gets in the way of doing routine work.
--
Physics is like sex. Sure, it may give some practical results,
but that's not why we do it. [Richard Feynman]
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Gene E. Bloch
Date: Tue, 16 Feb 2010 19:18
Date: Tue, 16 Feb 2010 19:18
35 lines
2736 bytes
2736 bytes
On 2/16/10, Adam Funk posted: > On 2010-02-15, Mike Yetto wrote: >> Šime Ramov <s@ramov.com> writes and having writ moves on. >>> I tried that originally too, but it didn't work. I've now used Adam's >>> wrapper script. > It worked? That was lucky. ;-) >> That approach was my first thought, but where's the fun in >> solving the problem so quickly? Don't we use slrn or tin or >> leafnode or computers for that matter, just so we can fix them >> constantly? >> >> Mike "if it ain't broke, tweak it" Yetto > From Clifford Stoll's _Silicon Snake Oil_: > I spend almost as much time figuring out what's wrong with my > computer as I do actually using it. Networked software, > especially, requires frequent updates and maintenance, all of > which gets in the way of doing routine work. I just figured out this week that I spend most of my time keeping my computer working so that my computer would be available for me to use to keep it working... Unfortunately, I'm probably not joking... -- Gene Bloch 650.366.4267 lettersatblochg.com
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Indi
Date: Tue, 16 Feb 2010 22:52
Date: Tue, 16 Feb 2010 22:52
21 lines
1914 bytes
1914 bytes
On 2010-02-16, Gene E Bloch <letters@someplace.invalid> wrote: > > I just figured out this week that I spend most of my time keeping my > computer working so that my computer would be available for me to use > to keep it working... > > Unfortunately, I'm probably not joking... > That's very unlucky. While I do spend lots of time making my systems do new tricks, actual repairs and maintenance take hardly any time at all. Well, except on the Dell laptop which seems to have had a 2 year self-destruct timer in it. Closest thing yet to a disposable computer. Guess that'swhy they're so free with their credit. -- indi "Fool me once, shame on you -- fool me twice... you can't get fooled again."
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Gene E. Bloch
Date: Tue, 16 Feb 2010 23:17
Date: Tue, 16 Feb 2010 23:17
40 lines
3156 bytes
3156 bytes
On 2/16/10, Indi posted: > On 2010-02-16, Gene E Bloch <letters@someplace.invalid> wrote: >> >> I just figured out this week that I spend most of my time keeping my >> computer working so that my computer would be available for me to use >> to keep it working... >> >> Unfortunately, I'm probably not joking... >> > That's very unlucky. > While I do spend lots of time making my systems do new tricks, > actual repairs and maintenance take hardly any time at all. > Well, except on the Dell laptop which seems to have had a 2 year > self-destruct timer in it. Closest thing yet to a disposable computer. > Guess that'swhy they're so free with their credit. It's not so bad, really: 1. I *was* exaggerating, for the sake of a self-referent joke, although there's a lot of truth in it... 2. The fact is, I enjoy this stuff to some extent. An example: I set up a backup job to run daily at 01:00 and then power off the computer, expecting it to run with the screen dark and then shut down. Well, it ran with the screen lit up and it didn't shut the computer down. I ended up learning more than I intended about the Task Scheduler (this is Windows 7), which was running a few jobs in the same time frame as my backups. Moved them to times like 04:00 to 05:00 and everything was cool. I like your characterization of the Dells as disposable computers... -- Gene Bloch 650.366.4267 lettersatblochg.com
--
Author: Unknown
Date: Tue, 16 Feb 2010 23:19
Date: Tue, 16 Feb 2010 23:19
21 lines
1853 bytes
1853 bytes
I've spent an insane amount of time developing my userContent.CSS(.TXT): http://jeffrelf.f-m.fm/userContent.CSS.TXT Often, making it best for some new site alters how it looks elsewhere. For me, it's like playing chess... good fun. Although I can do shit like this: @-moz-document domain(images.google.com), url-prefix(http://www.google.com/images?) I wish I could do: @-moz-document NOT( in·url(images.google) ) && NOT( in·url(com/images?) ) Likewise, I wish I could do: “ :NOT( PRE > Font ) && :NOT( PRE > Span )”. “:NOT()“* only works on a “simple selector”, not a compound selector and there's no && or ||. *: The “:not() selector”
Re: [slrn] Multiple commands in 'editor_command' variable
Author: Indi
Date: Wed, 17 Feb 2010 04:43
Date: Wed, 17 Feb 2010 04:43
35 lines
2604 bytes
2604 bytes
On 2010-02-16, Gene E Bloch <letters@someplace.invalid> wrote: > It's not so bad, really: > > 1. I *was* exaggerating, for the sake of a self-referent joke, although > there's a lot of truth in it... > > 2. The fact is, I enjoy this stuff to some extent. > Well that's good then. > An example: I set up a backup job to run daily at 01:00 and then power > off the computer, expecting it to run with the screen dark and then > shut down. Well, it ran with the screen lit up and it didn't shut the > computer down. > > I ended up learning more than I intended about the Task Scheduler (this > is Windows 7), which was running a few jobs in the same time frame as > my backups. Moved them to times like 04:00 to 05:00 and everything was > cool. > I much prefer the simplicity of cron myself. If everything in life was configurable via editable text files (and extensible with simle shell scripts) life would be so much easier and more pleasant. > I like your characterization of the Dells as disposable computers... > I think Dell has become a credit company that uses computers to sell credit. In retrospect I must admit it wan no bargain, though it looked like a good idea at the time. -- indi
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