- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: auto logout
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО02-11-2009 11:08 AM
тАО02-11-2009 11:08 AM
Re: auto logout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 11:08 AM
тАО02-11-2009 11:08 AM
Re: auto logout
We are using reflection X software.
Reflection x is passing
/usr/bin/X11/xterm -fn 6x13 -sb -ls -display %IP#% -name %T% &)
command to open the xterm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 11:10 AM
тАО02-11-2009 11:10 AM
Re: auto logout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 11:38 AM
тАО02-11-2009 11:38 AM
SolutionCreate a small scripts and "run_the_application.sh" and put it somewhere.
The contents would be:
# cat run_the_application.sh
#!/usr/bin/sh
cd /home/somestuff
./run_the_application
Be sure to take the lines out of the .profile, and make sure you make run_the_application.sh executable for the appropriate users.
Now modify your xterm line to be:
/usr/bin/X11/xterm -fn 6x13 -sb -ls -display %IP#% -name %T% -e /path/to/run_the_application.sh &)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 12:34 PM
тАО02-11-2009 12:34 PM
Re: auto logout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 12:24 PM
тАО04-30-2009 12:24 PM
Re: auto logout
usr/bin/X11/xterm -fn 6x13 -sb -ls -display %IP#% -name %T% -e /path/to/run_the_application.sh &)
My unix auditor doesn't like to see startup program as /usr/bin/csh in the /etc/passwd file as these users are not allowed to open a shell and do anyting. They are just allowed to run the application using x windows directly.
But if I put the startup program as /usr/bin/false instead of /usr/bin/csh for these user, the above command doesn't open the desired application.
What to do?
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 06:17 PM
тАО04-30-2009 06:17 PM
Re: auto logout
#!/usr/bin/sh
export DISPLAY+$(who -muR | awk '{print $NF}'):0.0
/full/pth/to/your/Xprogram some-params
exit
Save it and use chmod 755 yourScript. Run it interactively to make sure it works. Note that if any other variables are required for this program to run, be sure to include them in this script.
Bill Hassell, sysadmin
- Tags:
- scummy C shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 09:04 PM
тАО04-30-2009 09:04 PM
Re: auto logout
Slight typo: export DISPLAY=$(who -muR ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2009 11:44 AM
тАО05-13-2009 11:44 AM
Re: auto logout
#!/usr/bin/sh
export DISPLAY=$(who -muR | awk '{print $NF}'):0.0
/full/pth/to/your/Xprogram some-params
exit
Thanks for any help on this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2009 07:30 PM
тАО05-13-2009 07:30 PM
Re: auto logout
#!/usr/bin/sh
export DISPLAY=$(who -muR | awk '{print $NF}'):0.0
/full/pth/to/your/Xprogram some-params
exit
Try something is known to work:
#!/usr/bin/sh
export DISPLAY=$(who -muR | awk '{print $NF}'):0.0
/usr/bin/X11/xclock
exit
This should bring up the Xwindows clock. Your application should follow the $DISPLAY variable but if it does not, set the display according to their documentation.
Bill Hassell, sysadmin