Opened 11 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
Cc:

Description

[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=2902]

        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
          URL:
       * Summary:     job name is set incorrectly if first command is "."
   Status whiteboard:
      Attachments:

     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/settings.sh;
qstat -f'
Your job 1535 ("settings.sh; qstat -f") has been submitted

you can see that the job name is picked up as "settings.sh; 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/settings.sh; qstat -f'

or

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

or

qrsh -S /bin/sh '. /usr/local/sge_maintrunk/default/common/settings.sh; 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/settings.sh;
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.