From: Robert Minsk <rminsk@(email surpressed)>
Subject: Re: [Q+A] How do I make the submit scripts load show-specific environment settings automatically?
   Date: Mon, 29 Jan 2007 19:53:53 -0500
Msg# 1460
View Complete Thread (4 articles) | All Threads
Last Next
Here is what I do to capture the users environment at submission time.  The will only work on *nix type machines.

/bin/env | /bin/egrep -v '^(TERM|DISPLAY|_|SHELLOPTS|BASH_VERSINFO|EUID|GROUPS|PPID|UID)=' | /bin/sed -e "s/^\([^=]*\)=\(.*\)/\1='\2'; export \1/"

Last Next