in reply to setting enviornment variables for parent process

If this is to be run from a .cshrc then will the perl script also be executing any X applications? If so then setting the DISPLAY environment variable within the script is fine:
$ENV{DISPLAY}="$grab:0.0";
Otherwise why use a perl script to export the value of $DISPLAY?

Replies are listed 'Best First'.
RE: Re: setting enviornment variables for parent process
by Anonymous Monk on Feb 09, 2000 at 21:03 UTC
    Mainly I'm just trying to learn perl as I have no programming experience at all. Also I was just trying to figure out a way so that users wouldn't have to type setenv DISPLAY 'theirhost:0.0' everytime they telnetted into the server. I tried ssh which works great as far as that respect but for really intesive X applications like Arcview and Arcinfo the encryption causes some major lag and hangups when moving or resizing windows.
      I suspect the encryption can be disabled for ssh. Consider doing this on an as-needed basis.