[Migrated content. Thread originally posted on 14 December 2007]
Has any one experienced this and can share their solution? Here is what I did to resolve it:AcuConnect 7.2.1 running on unix (HP-UX in my case). Configuration parm USE_UNIX_SHELL set to TRUE, necessary to initialize user environment prior to database access, etc. Thin Client would terminate the connection request with no error information in trace log except for an error message from an stty command: "stty: : Not a typewriter".
Spent a lot of time trying to add logic to the login profiles to keep TC from executing stty commands without resolving the problem. After much trial and error, I figured out that 'cat' and 'echo' commands anywhere in the login process were the actual culprit, not 'stty'. Had to check & edit profile files: /etc/profile and in user's home directory .login, .profile, .env to wrap some logic to test for an interactive terminal session around any occurrance of 'cat' or 'echo' that would send output to the terminal. The logic I added was this simple test:
if [ -t 0 ]
then
... interactive terminal stuff ...
fi
Thin Client works now and the connection appears to have the same environment as if a direct login was done. So that solved the problem, but...
This was a real frustrating, time-wasting pain to figure out in the first place. If a unix admin or other user comes along some time in the future and decides to edit one of those login files to 'echo' so much as a blank line to the screen, the Thin Client will stop working. And they will have no idea why.
I've scanned the AcuCorp/MicroFocus website, knowledgebases, release documentation, Google searches, etc. and found nothing related to this. I did open a ticket with the support line and the final result was that they confirmed that TC does have an issue with 'cat' and it should be avoided, and that there wasn't anything you could do to make the TC run any differently. Support did a great job researching this for me. I'm just really surprised that such a common cause, like 'cat' or 'echo' in a login profile, is still an issue for the Thin Client at version 7.2.1.
Has anyone else run into this issue? How did you resolve it? Do you know of another solution besides what I came up with? Is there any way to make the Thin Client ignore unix commands that display to the screen?:confused:
Thanks
~Dan



