[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: perl-formatted sig



* Nori Heikkinen (nori@sccs.swarthmore.edu) [021121 11:35]:
> okay, now i wanted to try this for myself, but can't get it working.
> if i've read the muttrc man page correctly, all i need to do is make a
> ~/.signature file that has the line 
> 
> /home/nori/bin/formatted_sig.prl
> 
> and that is all?  `cat /home/nori/.signature` works fine from the

This is because without a #! line, your shell guesses to execute it with
$SHELL.  mutt can't do that.  You should always use a #! for your shell
scripts, so that they can be executed from programs other than your
shell.

> command line ... but i'm failing to understand where i should put a
> pipe.  should ~/.signature instead be ~/.signature| ?  here's the

Use

set signature="~/bin/formatted_sig.prl|"

you could instead

set signature="~/.signature|"
where ~/.signature looks like

#!/bin/sh
~/bin/formatted_sig.prl
# EOF

or just

#!/home/nori/bin/formatted_sig.prl

Either of these last 2 ways is a useless layer of redirection, though;
just call the script directly from your muttrc with the first set
signature line I showed above.

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
"Those who desire to give up freedom in order to gain security will not have,
nor do they deserve, either one."  --President Thomas Jefferson.

Attachment: pgpWfkfAl74bC.pgp
Description: PGP signature


Reply to: