[GE users] SGE tty warning

Reuti reuti at staff.uni-marburg.de
Wed Mar 29 20:50:20 BST 2006


Hi,

Am 29.03.2006 um 19:59 schrieb Chris Dagdigian:

> For a pragmatic workaround ...
>
> I usually hard code this into my qsub command:
>
>  -S /bin/sh
>
> or embed it directly into the script itself:
>
> #$ -S /bin/sh
>
> It neatly makes the tty error go away.

as this error occurs with the C shell, which is the default in the  
queue definition of SGE, it should also work to change this in your  
queue definitions already, e.g.:

$ qconf -sq vast
...
shell                 /bin/sh
...
shell_start_mode      unix_behavior
...

This way the -S switch isn't necessary. - Reuti


> Regards,
> Chris
>
>
> On Mar 29, 2006, at 10:08 AM, laikwong wrote:
>
>> Hi,
>>
>> I have been receiving this warning while submitting most of my  
>> jobs to SGE
>>
>> Warning: no access to tty (Bad file descriptor).
>> Thus no job control in this shell.
>>
>> I read in the SGE Admin User Guide (around pg 51) something about  
>> this
>> script that is suppossed to fix this issue:
>> tty -s
>> if [ $? = 0 ]; then
>> stty erase ^H
>> fi
>>
>> But I have no idea what it is suppossed to do or where to place  
>> this script.
>> I tried putting it in my .bachrc but it does not seem to help.
>>
>> Any ideas? Thanks for the help.
>>
>> Daniel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net

---------------------------------------------------------------------
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