I assume you're running this as (part of) a logon and logoff script. Since you've defined two different script processes, just add $ACTION="logon" or "logoff" to the command line.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D