[gridengine users] max length of an environment variable

Ed Spittles ed.spittles at gmail.com
Wed Oct 5 11:28:51 UTC 2011


Hello
  we find that environment variables with values longer than 10000
characters are truncated - we're using qsub with -V.   Is there a
configuration parameter we can set to change this?   We're running a 32-bit
SGE 6.2u5 on CentOS 5, and the jobs run in bash.

  (Normally I prefer to keep the environment small, but this has come up as
various scripts were put together in novel ways.)

  Here's an example in bash:
$ x=`printf %10000s x`
$ printenv x | wc -c
  10001
$ echo 'printenv x | wc -c > outfile.txt' | qsub -V -sync y
$ cat outfile.txt
9998

Cheers
Ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gridengine.org/pipermail/users/attachments/20111005/d3dfb08e/attachment.html>


More information about the users mailing list