procmail
[Top] [All Lists]

Re: .forward and parameter passing

1997-10-14 13:08:28
On Tue, 14 Oct 1997 14:14:42 -0500, 
wwgrol(_at_)sparc01(_dot_)fw(_dot_)hac(_dot_)com (W.
Wesley Groleau x4923) wrote:
In fact, I don't understand why just setting TZ doesn't work.  But I'd set
it in the .procmailrc rather than the .forward

<foot in mouth mode, i.e. haven't really checked>

I'd have thought it's because unless it's exported (as David then
decided to suggest you might) it won't survive across the exec.

</foot> <!-- well, I hope :-->

I just had to work on a script (not procmail) that had
export TZ=GMT
<do something with 'date'>
export TZ=EST5

You should probably do this in a subshell instead of assuming you are
in EST5:

  (
    export TZ=GMT
    # ...
  ) # Bring back the original TZ to life, whatever it was

Or if it's a one-liner, just 

    TZ=GMT date +%y%a%d%a%y%a%d%a

Hope this helps,

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

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