Thanks Reuti, worked well

On Wed, Jun 5, 2013 at 12:31 AM, Reuti <[email protected]> wrote:

> Am 04.06.2013 um 20:25 schrieb Vamsi Krishna:
>
> > Hi,
> >
> > i have function insdie bash script
> > #!/bin/bash
> > test(){
> > echo "$HOSTNAME"
> > }
> > qrsh -V -now no -pty y test
> >
> > can i submit function using qrsh interactive way
>
> If you want to submit from inside a jobscript:
>
>
> - it's necessary to source the settings file in the script:
>
> source /usr/sge/default/common/settings.sh
>
> - the function needs to be exported:
>
> export -f test
>
> - the exechost needs to be also a submit host
>
> - due to a bug the -V won't allow (depending on the version of SGE) to
> export functions, but "-v test" will.
>
> (funny, I didn't notice the latter before)
>
> #!/bin/bash
> . /usr/sge/default/common/settings.sh
> test(){ echo "$HOSTNAME"; }
> export -f test
> qrsh -v test -now no -pty y test
>
> -- Reuti
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to