First, find out what happens when you try running fortune inside the
terminal. If it comes back with some kind of quote and doesn't come back
with an error message saying file not found then you don't have to
download it. Second if it does come back with an error, you might try
/usr/games/fortune and see if that's successful. If not, then you'll have
to find fortune or fortunes-mod for the mac on line and download and
install it. Okay once installed let's say you want to write a script
called newsig. If I were doing it, I'd do:
ex newsig <cr>
0i <cr>
#!/bin/bash
# file: newsig - generate signature using fortune output.
/usr/games/fortune >.signaturerc echo "(your signature with email
address)" >>.signaturerc exit 0 <cr> . <cr> w <cr> q <cr> that should put
you back out in the terminal so try typing less newsig <cr> and check your
work out. If less says newsig not found, you didn't do something right.
if it's there then do chmod 755 ./newsig <cr> to make it executable.
Okay so you're doing an email and if it's just going to be one message you
could run newsig then write and send your message. If multiple messages
you may want to run newsig in a separate window in terminal mode by being
in its directory and typing newsig <cr>. It's a bit complex this first
time through if you never wrote a shell script before and never used ex
but both ex and bash have man pages available. I'm not certain how to
write shell scripts with text editor yet and have to experiment with that
one a bit.
On Sat, 1 Mar 2008, Orin wrote:
Hmm. I was just looking for a program, something like WeatherCig or
something, something that puts random jokes or random quotes in your cig, I
just like stuff like that.
But, how do I write one? How do I select the one I want for a message?
On Mar 1, 2008, at 9:50 AM, Jude DaShiell wrote:
The fortunes-mod program can be used in a script to put a little random
text into a signature file. I'd use rot47 which is a variation on rot13
though for the email address in that signature though. It may help cut
down on spam. I've spotted several pieces of spam with the older signature
file I use on one system and the sending address that was used for me
included the < and > signs I used to mark off the email address in my
signature file. What rot47 does is to take the whole 96 character print
set and remove the space character and delete character and that gets down
to 94 characters. After that, whenever a character is in the lower half of
the set its mirror character gets used in the upper half of the set.
Writing those characters out in two columns where the first starts with (!)
and ends with (O) and the second column starts with (P) and finishes the
character set. After that find the character to use and on the same row
write the character in the other column. Now for email addresses to poison
spam data bases you don't encrypt the (@) sign and you don't encrypt the
(o) characters. That way you have one (@) character in the email address
but the rest of the email address will go nowhere.
On Sat, 16 Feb 2008, Orin wrote:
> Hi all,
>
> Just wondering how to create a cig in mail? Also, is there an App that'll
> create cigs randomly app-on sending an email, like some software does for
> windows?
>
> Thanks.
>
>
>