Opened 10 years ago

Last modified 9 years ago

#630 new defect

IZ2902: job name is set incorrectly if first command is "."

Reported by: templedf Owned by:
Priority: lowest Milestone:
Component: sge Version: 6.2u1
Severity: Keywords: clients


[Imported from gridengine issuezilla]

        Issue #:      2902             Platform:     All      Reporter: templedf (templedf)
       Component:     gridengine          OS:        All
     Subcomponent:    clients          Version:      6.2u1       CC:    None defined
        Status:       NEW              Priority:     P5
      Resolution:                     Issue type:    DEFECT
                                   Target milestone: ---
      Assigned to:    roland (roland)
      QA Contact:     roland
       * Summary:     job name is set incorrectly if first command is "."
   Status whiteboard:

     Issue 2902 blocks:
   Votes for issue 2902:

   Opened: Tue Feb 3 11:30:00 -0700 2009 

If I run the following job:

# qsub -b y -S /bin/sh '. /usr/local/sge_maintrunk/default/common/;
qstat -f'
Your job 1535 ("; qstat -f") has been submitted

you can see that the job name is picked up as "; qstat -f", which is
pretty useless.  A job named "." is also useless, so we'll have to figure out
what a better solution would be.

This issue is filed as a P5 because the use case that exposes the issue is a
misuse of qsub -b y.  More appropriate approaches include:

qsub -b y /bin/sh '. /usr/local/sge_maintrunk/default/common/; qstat -f'


echo '. /usr/local/sge_maintrunk/default/common/; qstat -f' | qsub -b
y -S /bin/sh


qrsh -S /bin/sh '. /usr/local/sge_maintrunk/default/common/; qstat -f'

   ------- Additional comments from reuti Tue Feb 3 11:50:44 -0700 2009 -------
There was already a discussion on the list some time ago, that just all up to and including the rightmost
"/" is removed.

One option could be: if the given argument '. /usr/local/sge_maintrunk/default/common/;
qstat -f' is a valid file name, remove all directories and use the filename as jobname (like now for valid
files), otherwise use the string COMMAND (like now STDIN, QRLOGIN or QLOGIN in various cases). If the
user wants something else, he has to specify it with -N in the usual way.

Change History (0)

Note: See TracTickets for help on using tickets.