[GE users] submission script

igardais igardais at yahoo.fr
Mon Sep 7 10:00:25 BST 2009

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

Hi Christos,

HOSTNAME is expanded on the machine you run the script.
Place it between single quotes '' or escape the dollar sign \$ so it won't be interpreted by your machine and write as-is in the generated script.


De : cdeligka <cdeligka at purdue.edu>
? : users at gridengine.sunsource.net
Envoyé le : Samedi, 5 Septembre 2009, 17h02mn 39s
Objet : [GE users] submission script

dear all,

I have a simple script (it only prints the name of the host) which I submit with
the qsub command to the node bionode9 and it works as expected.

This is my script myjob.sh :


#$ -V
#$ -S /bin/sh
echo "$HOSTNAME"

which I submit with qsub -q dell-long-thin at bionode9 myjob.sh

and my output is


However, if I prepare an executable submyjob (see below) and run that executable
I get the name of node from which I submit the job (bio7) and not the name of
the node at which the job is running (bionode9).

This is the executable submyjob:

qsub -q dell-long-thin at bionode9 << EOF

#$ -V
#$ -S /bin/sh
echo "$HOSTNAME"


which I run as ./submyjob

and the output is

bio7.physics...whereas I would expect to get bionode9....

Does anyone know why this is happening? How can I get my executable submyjob to
"see" bionode9 as the host and not bio7?

thank you....



To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net<mailto:users-unsubscribe at gridengine.sunsource.net>].

More information about the gridengine-users mailing list