[GE users] submission script

reuti reuti at staff.uni-marburg.de
Mon Sep 7 09:59:28 BST 2009


Hi,

Am 05.09.2009 um 17:02 schrieb cdeligka:

> 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 :
>
> #!/bin/sh
>
> #$ -V
> #$ -S /bin/sh
> echo "$HOSTNAME"
>
> which I submit with qsub -q dell-long-thin at bionode9 myjob.sh
>
> and my output is
>
> bionode9.biophys
>
> 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:
>
> #!/bin/bash
> #
> qsub -q dell-long-thin at bionode9 << EOF

to avoid the expansion of shell variable you have to quote the EOF,  
i.e.:

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

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

This one would be expended during submnission, not on the host,  
otherwise

-- Reuti

> EOF
>
> 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....
>
> Christos
>
> ------------------------------------------------------
> http://gridengine.sunsource.net/ds/viewMessage.do? 
> dsForumId=38&dsMessageId=215932
>
> To unsubscribe from this discussion, e-mail: [users- 
> unsubscribe at gridengine.sunsource.net].
>

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

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



More information about the gridengine-users mailing list