- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Started jobs immune to hangups
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
тАО08-27-2007 09:14 PM
тАО08-27-2007 09:14 PM
Started jobs immune to hangups
ksh Version 11/16/88
Hi,
background jobs are sent a HUP signal while a user is logging out. I can avoid it with
programming some traps in my script or I can start my script with nohup command.
What about the jobs that are already running and haven't been started with nohup and have implemented no traps? Is there a way to make ksh not send SIGHUP to them? I could see a 'disown' command in other shell (i.e.ksh93) but I did find any workaround in ksh88. Does anybody know any solution?
Thank you in advance,
wojtek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 07:28 AM
тАО08-28-2007 07:28 AM
Re: Started jobs immune to hangups
Or it seems nohup or a signal handler for SIGHUP is the way to go.
Or use ksh93 in /usr/dt/bin/dtksh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 07:27 PM
тАО08-28-2007 07:27 PM
Re: Started jobs immune to hangups
I am aware of that solutions. But what about important jobs that were to finish till the end of my work hours and I have to suddenly go out and logout?
I would like to have these jobs running after my logout despite the fact they were started without nohup and had implemented no hup signals.
I believe there should be a way/program to connect with a process associated with a given PID and make it ignore sighup signals.
I am still waiting for your workarounds.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 07:59 PM
тАО08-28-2007 07:59 PM
Re: Started jobs immune to hangups
Sometimes when I must logout but my jobs must still working I use GNU screen program.
- run screen
- do your work
- detach form screen ( screen with your jobs are still working in background)
- logout
- login
- attach to screen and your desktop
Thanks
Marcin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 08:08 PM
тАО08-28-2007 08:08 PM
Re: Started jobs immune to hangups
The reason we use cron is so you CAN walk away and go home and know your jobs will still be running.
It is very possible that cron can help your office save money, time and wear and tear on the sysadmin if used.
nohup jobs are immune to hangup.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2007 03:33 AM
тАО08-29-2007 03:33 AM
Re: Started jobs immune to hangups
If they are important, basically don't do that, the only ones you lost were the ones you started before right now.
You can use dtksh.
>Marcin: Sometimes when I must logout but my jobs must still working I use GNU screen program.
VNC will allow you to do that. Or using a workstation, you just lock the screen.