[GE users] qsub does not run my bash file

Olesen, Mark Mark.Olesen at arvinmeritor.com
Fri Apr 21 09:08:55 BST 2006

    [ The following text is in the "X-UNKNOWN" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some characters may be displayed incorrectly. ]

When you create a queue, SGE unfortunately seems to use 'csh' as the default
shell for the queue. Check the entry 'shell' using qconf -sq <queuename> and
modify it using 'qconf -mq' to be /bin/sh.

While you are at it, you may also wish to add bash as a login_shell using
'qconf -mconf', otherwise you may or may not see your ~/.profile being

> I got an error:
> [mex at clusun subfile]$ more ~/prova.sh.e20056
> basepath=/export/home/mex/BoTSched: Command not found.
> basepath: Undefined variable.

To ensure that the standard bourne shell is used, you can *additionally* add
'-S /bin/sh' to $SGE_ROOT/$SGE_CELL/common/sge_request

Perhaps the default for new queues could/should be the standard bourne

> [mex at clusun subfile]$ more ~/prova.sh.o20056
> Warning: no access to tty (Bad file descriptor).
> Thus no job control in this shell.

You may wish to protect certain elements in your ~/.profile, ~/.bashrc, etc.

For example:

/usr/bin/tty -s 2>/dev/null     # interactive shell
if [ $? -eq 0 ]; then
  stty intr "^C"
  for i in $HOME/.aliases $HOME/.aliases.group $HOME/.aliases.user
    [ -r $i ] && . $i


Dr. Mark Olesen
Principal Engineer Thermofluids Analysis
ArvinMeritor Light Vehicle Systems
ArvinMeritor Emissions Technologies GmbH
Biberbachstr. 9
D-86154 Augsburg, GERMANY

This e-mail message and any attachments may contain legally privileged, confidential or proprietary Information, or information otherwise protected by law of ArvinMeritor, Inc., its affiliates, or third parties. This notice serves as marking of its ?Confidential? status as defined in any confidentiality agreements concerning the sender and recipient. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this e-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this e-mail message from your computer.

To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net

More information about the gridengine-users mailing list