Updating cookies

From Useful Data
Revision as of 19:39, 15 June 2017 by Simon (talk | contribs) (Recreated page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Updating cookies

Applies to Xubuntu 11.10

I create my email .sig by concatenating standard name & telno text to output from the cookie program, which has as its input a list of quotes I like.

I keep the boilerplate text in a file 'signature' and quotes in a file 'myfortune'. The command to generate a random .sig is:

cat signature && fortune ~/myfortune

Whenever 'myfortune' is edited, the corresponding .dat file must be updated; this is done with the command:

strfile myfortune myfortune.dat

Note that this is specific to Linux and then only certain versions - there are at least two other ways for 'fortune' cookie data to be stored.