Operating System - HP-UX
1755917 Members
3636 Online
108839 Solutions
New Discussion

getlogin function giving error no. 25: It is not a typewriter.

 
Puneet_1
Occasional Contributor

getlogin function giving error no. 25: It is not a typewriter.

My application is using getlogin function. The n number of users can login to our application. Our application runs on HP-UX 11.0 model L2000-25x model machine.

whenever we start out application, the logic first tries to get the logged in user id through getlogin function and then go ahead with further program logic.

But for few users it gives me error in getlogin function. The error number is 25: It is not a typewriter, and for other users it runs perfectly.

I also searched for the same problem in this forum and as they suggested I have done the same but problem still exist. I did the follwing as suggested by some posted messages:
[SUGGESTION] You shouldn't have stty and tty type of command in .kshrc, they need to be moved to .profile.
[REMARKS FROM ME]DONE.

[SUGGESTION]This sort of message normally comes when a .profile is executed in background and the stty command does not link to a physical tty.
There should be a check in a .profile not to execute the tty specific commands in background.
[REMARKS FROM ME]DONE.


Kindly suggest me something.
Thanks in advance.

regards,
Puneet.