- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HELP!! SIGTTIN received!
Operating System - HP-UX
1747999
Members
4458
Online
108756
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2003 07:55 AM
тАО05-22-2003 07:55 AM
Hello colleagues,
something strange happens in a my application in HP UX 10.20 environment:
I've an application started at the boot (by init) as root user; it forks some children; when one of them tries to execute a "su - snml" a signal 27 is received by the father ... signal 27 = SIGTTIN, it seems it tries to read from TT input ... wher can I look for the variable read?? is it in the snml .profile or .kshrc files??
thanks a lot
Enrico
something strange happens in a my application in HP UX 10.20 environment:
I've an application started at the boot (by init) as root user; it forks some children; when one of them tries to execute a "su - snml
thanks a lot
Enrico
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2003 08:47 AM
тАО05-22-2003 08:47 AM
Solution
The terminal interaction could be in either or both; it could be coming from /etc/profile if that has been modified from the default; it could be coming from a script called by the .profile; it could be generated by a command like tset or tput.
When you find the culprit, should you determine that you cannot change the script due to the needs of an interactive login, one thing you can do it create a user to mirror snml, make sure it belongs to the same groups, and then copy the .profile and .kshrc file to the new users home directory. You can then make the mods you need to get it to run in the background. Of course, you'll also have to change your app to su to the new user ID.
HTH
mark
When you find the culprit, should you determine that you cannot change the script due to the needs of an interactive login, one thing you can do it create a user to mirror snml, make sure it belongs to the same groups, and then copy the .profile and .kshrc file to the new users home directory. You can then make the mods you need to get it to run in the background. Of course, you'll also have to change your app to su to the new user ID.
HTH
mark
the future will be a lot like now, only later
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2003 09:03 AM
тАО05-22-2003 09:03 AM
Re: HELP!! SIGTTIN received!
Hi Enrico:
I agree with Mark. Execution of the 'su -' sequence causes the user's $HOME/.profile to be read. Typically, profiles execute 'tset' and 'stty' commands in order to determine the terminal type and configuration suring login sequences. In your case, there is no terminal, hence the 'sigttin'.
You could resort to a simple 'su' without the '- user' which would prevent the sourcing (reading) of the user's profile, or you could modify the user's $HOME/.profile to incorporate conditional execution of 'stty' and 'tset' commands:
...
if [ -t 0 ]; then #...interactive to terminal
...
If you have environmental variables that you have incorporated into a user's profile and that's the only reason to source the profile with 'su -' then, move those variables into another file that not only the $HOME/.profile can source (read), but any script can too.
To source (read) do:
. myvars
Note that that's "dot", "space" and then the filename.
Regards!
...JRF...
I agree with Mark. Execution of the 'su -' sequence causes the user's $HOME/.profile to be read. Typically, profiles execute 'tset' and 'stty' commands in order to determine the terminal type and configuration suring login sequences. In your case, there is no terminal, hence the 'sigttin'.
You could resort to a simple 'su' without the '- user' which would prevent the sourcing (reading) of the user's profile, or you could modify the user's $HOME/.profile to incorporate conditional execution of 'stty' and 'tset' commands:
...
if [ -t 0 ]; then #...interactive to terminal
...
If you have environmental variables that you have incorporated into a user's profile and that's the only reason to source the profile with 'su -' then, move those variables into another file that not only the $HOME/.profile can source (read), but any script can too.
To source (read) do:
. myvars
Note that that's "dot", "space" and then the filename.
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP