procmail
[Top] [All Lists]

Re: Time and DAte

1996-05-29 02:58:29
-----BEGIN PGP SIGNED MESSAGE-----

On Tue, 28 May 1996, Gino Filicetti wrote:

It works all fine and dandy, but I wanted to know if there are some
variables I can use to include the time and date in the log? thanks!

Try this:
DATE=`date`

Now you can use $DATE in the next recipes. On my system, date returns 
something like:
Wed May 29 11:45:02 METDST 1996
You can add flags to the date command if you want another format.

- --
Guy Geens <guy(_dot_)geens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be>: Ph.D. 
student at ELIS -- TFCG / IMEC 
Home Page: http://www.elis.rug.ac.be/ELISgroups/tfcg/staff/gg.html 
finger ggeens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be for PGP public keys (or use 
keyserver) 

"Psychedelic drugs cause paranoia, confusion, and total loss of
reality in politicians who have never taken them."



-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: pgp fingerprints in message headers

iQBVAwUBMawdR3wHoCha5QR1AQF7MwH+OK3vfkWzIQx8qOGG/N2g9UsMRWcZjJhQ
ueGnkbAJlC+5AZeIsVL9FGu2pWX8rV8+8YmuTSH1JLAWU2rCx89sRg==
=srF4
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>