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 20:29:24 -0500
Msg# 1462
View Complete Thread (4 articles) | All Threads
Last Next
On Monday 29 January 2007 17:27, Greg Ercolano wrote:
> [posted to rush.general]
>
> Robert Minsk wrote:
> > 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/"
>
>      Under Windows you can do similar things with e.g. the 'set' command
> from DOS, and using perl to parse out the variables.
>
>      But in general I advise against 'snapshotting' the user's workstation
> environment in favor of having a 'clean' environment be derived at render
> time, so weird platform specific variables (like PATH and LD_LIBRARY_PATH)
> aren't propagated to other machines/platforms during rendering.
>

I am of the opposite camp in that very important information is in the users 
environment and that the environment should be logged with the render job.  
But we will not argue the point on here.

Last Next