Signatures in KMail

Frode M. Døving frode at ubuntu.com
Wed Oct 18 15:35:20 UTC 2006


Onsdag 18 oktober 2006 08:50, skrev Robert Tilley:
> I have seen many messages with more than one automatic signature (uptime,
> fortune, etc.).  How is this accomplished?
>
> I know there is the optional Signature field (part of Identity) where a
> command may be specified.  How do you chain two commands together?  How
> about a command, some framing text, then a second command?
>
> Thanks for the help, Bob

You can do this with a shell-script.
You can use for example:
echo -n "so, this is my uptime: "
uptime
echo -n "and here is a fortune: "
fortune

Put it in a file, let's say sig.sh
make the file executable (chmod +x sig.sh or use konqueror -> properties)

You can run it with  './sig.sh'
The result will be:
so, this is my uptime:  17:32:01 up 5 days, 18:10,  2 users,  load average: 
0.38, 0.26, 0.35
and here is a fortune: Obviously I was either onto something, or on something.
                -- Larry Wall on the creation of Perl

Play with the file, change stuff and have fun :)

- Frode




More information about the kubuntu-users mailing list