Hi,

We have some functions in our environment which are not being parsed properly 
by sge, which is causing errors on the stdout while launching interactive jobs

For example,
<code>
$qrsh -V hostname
Setting personal shell environment
bash: module: line 1: syntax error: unexpected end of file
bash: error importing function definition for `BASH_FUNC_module'
</code>


The above error is caused by the following function:
<code>
module() { eval 
`/applics/platform/modules/Modules/$MODULE_VERSION/bin/modulecmd bash $*`;}
</code>


The function is parsed as multi-line internally by bash like so:
<code>
$env | grep -A1 eval
BASH_FUNC_module()=() {  eval 
`/applics/platform/modules/Modules/$MODULE_VERSION/bin/modulecmd bash $*`
}
</code>


But when the environment variables are exported, sge is having trouble 
exporting mutli line functions, leading to the aforementioned error. Is there 
any way we can circumvent this ?

Thanks and regards,
Srinivas.
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to