You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Kees van Veen <ke...@kewill.com> on 2010/02/04 10:18:12 UTC
deploy.sh stty echo
Hi,
I just switched to geronimo-tomcat6-javaee5-2.2, and deploying our
application with a script that calls $GERONIMO_HOME/bin/deploy.sh now
fails (on Ubuntu 9.10) because the last line in deploy.sh is 'stty echo'
which causes the script to exit with a non-zero status (stty: standard
input: Invalid argument) when input/output is redirected. Removing that
line solves my problem.
Anyone else experiencing that ?
Regards,
Kees
Re: deploy.sh stty echo
Posted by Kees van Veen <ke...@kewill.com>.
https://issues.apache.org/jira/browse/GERONIMO-5147
Regards,
Kees
-------- Original Message --------
Subject: Re: deploy.sh stty echo
From: Kevan Miller <ke...@gmail.com>
To: user@geronimo.apache.org
Date: Tue 16 Feb 2010 03:30:55 AM CET
> On Feb 15, 2010, at 10:30 AM, Kees van Veen wrote:
>
>> Hi Kevan,
>>
>> The attached diff works for me, while still doing the 'stty echo' the exit status of the Java command is preserved, so my script calling deploy.sh would still fail when Java fails, but not when stty fails.
>>
>> BTW why not do 'stty sane' (or both), as apparently exiting Java with an exception does not reset the terminal properly ?
>
> Kees
> Beats me. Hoping that somebody who knows more about shell scripts (which isn't saying much) will step in. I think they're distracted by a vacation at the moment...
>
> Could I ask you to create a Jira -- https://issues.apache.org/jira/browse/GERONIMO and attach your patch/diff to the Jira? Clicking the "Grant license to ASF" button makes it clear that you are licensing your changes to the ASF. Clears up any potential licensing concerns.
>
> Regardless, thanks for your help. Hopefully we'll have this fixed soon.
>
> --kevan
Re: deploy.sh stty echo
Posted by Kevan Miller <ke...@gmail.com>.
On Feb 15, 2010, at 10:30 AM, Kees van Veen wrote:
> Hi Kevan,
>
> The attached diff works for me, while still doing the 'stty echo' the exit status of the Java command is preserved, so my script calling deploy.sh would still fail when Java fails, but not when stty fails.
>
> BTW why not do 'stty sane' (or both), as apparently exiting Java with an exception does not reset the terminal properly ?
Kees
Beats me. Hoping that somebody who knows more about shell scripts (which isn't saying much) will step in. I think they're distracted by a vacation at the moment...
Could I ask you to create a Jira -- https://issues.apache.org/jira/browse/GERONIMO and attach your patch/diff to the Jira? Clicking the "Grant license to ASF" button makes it clear that you are licensing your changes to the ASF. Clears up any potential licensing concerns.
Regardless, thanks for your help. Hopefully we'll have this fixed soon.
--kevan
Re: deploy.sh stty echo
Posted by Kees van Veen <ke...@kewill.com>.
Hi Kevan,
The attached diff works for me, while still doing the 'stty echo' the
exit status of the Java command is preserved, so my script calling
deploy.sh would still fail when Java fails, but not when stty fails.
BTW why not do 'stty sane' (or both), as apparently exiting Java with an
exception does not reset the terminal properly ?
Regards,
Kees
-------- Original Message --------
Subject: Re: deploy.sh stty echo
From: Kevan Miller <ke...@gmail.com>
To: user@geronimo.apache.org
Date: Sat 13 Feb 2010 06:25:34 PM CET
> On Feb 4, 2010, at 4:18 AM, Kees van Veen wrote:
>
>> Hi,
>>
>> I just switched to geronimo-tomcat6-javaee5-2.2, and deploying our application with a script that calls $GERONIMO_HOME/bin/deploy.sh now fails (on Ubuntu 9.10) because the last line in deploy.sh is 'stty echo' which causes the script to exit with a non-zero status (stty: standard input: Invalid argument) when input/output is redirected. Removing that line solves my problem.
>>
>> Anyone else experiencing that ?
>
> No, but sounds like we've introduced a problem.
>
> FYI, this change was added to address -- https://issues.apache.org/jira/browse/GERONIMO-4589
>
> Perhaps you have a suggestion for a better ways of handling? Afraid my scripting-foo is weak.
>
> You should creat a Jira.
>
> --kevan
Re: deploy.sh stty echo
Posted by Kevan Miller <ke...@gmail.com>.
On Feb 4, 2010, at 4:18 AM, Kees van Veen wrote:
> Hi,
>
> I just switched to geronimo-tomcat6-javaee5-2.2, and deploying our application with a script that calls $GERONIMO_HOME/bin/deploy.sh now fails (on Ubuntu 9.10) because the last line in deploy.sh is 'stty echo' which causes the script to exit with a non-zero status (stty: standard input: Invalid argument) when input/output is redirected. Removing that line solves my problem.
>
> Anyone else experiencing that ?
No, but sounds like we've introduced a problem.
FYI, this change was added to address -- https://issues.apache.org/jira/browse/GERONIMO-4589
Perhaps you have a suggestion for a better ways of handling? Afraid my scripting-foo is weak.
You should creat a Jira.
--kevan