[GE issues] [Issue 3200] New - SGE can't handle multi-line environment variables

joga Joachim.Gabler at sun.com
Tue Dec 1 10:53:52 GMT 2009


http://gridengine.sunsource.net/issues/show_bug.cgi?id=3200
                 Issue #|3200
                 Summary|SGE can't handle multi-line environment variables
               Component|gridengine
                 Version|5.3
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|execution
             Assigned to|pollinger
             Reported by|joga






------- Additional comments from joga at sunsource.net Tue Dec  1 02:53:51 -0800 2009 -------
SGE is not hanling a multiline variable.

Not H/W specific or OS specific.

Can be reproduced with the following 2 scripts:
%more SUBMIT
#!/bin/sh

#$ -S /bin/sh
MY_MULTILINE_VARIABLE='This is a test line 1
This is a test line 2
This is a test line 3
This is a test line 4'

export MY_MULTILINE_VARIABLE

echo "Multiline is set to ->$MY_MULTILINE_VARIABLE<-"

qsub -p 0 -l arch=sol\*,h_rt=30 -j y -o _output -cwd -v MY_MULTILINE_VARIABLE ./GRIDJOB

exit 0

--------------------------------------------

%more GRIDJOB
#!/bin/sh

#$ -S /bin/sh
echo "In $0"

echo "In grid job, MY_MULTILINE_VARIABLE is set to ->$MY_MULTILINE_VARIABLE<-"

exit 0

------------------------------------


To duplcate just run "SUBMIT" and you will see on the screen the multiline variable is ok but when you look in the log file it only shows
the first line.

%more _output
In /opt/n1ge/default/spool/mickey/job_scripts/315
In grid job, MY_MULTILINE_VARIABLE is set to ->This is a test line 1<-

As you can see it only shows the first line of the multilne variable

Also when you review the SGE_ROOT/SGE_CELL/spool/<execution_host>/active_jobs/<job>/environment file you see that the multiline varialbe is
correct.

# more environment
MY_MULTILINE_VARIABLE=This is a test line 1
This is a test line 2
This is a test line 3
This is a test line 4
PATH=/tmp/313.1.all.q:/usr/local/bin:/bin:/usr/bin:/usr/ucb
PWD=/home/sgeuser1
REQNAME=GRIDJOB
HOME=/home/sgeuser1
SHELL=/bin/sh
USER=sgeuser1
LOGNAME=sgeuser1
JOB_NAME=GRIDJOB
...

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=36&dsMessageId=230670

To unsubscribe from this discussion, e-mail: [issues-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list