- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Back ground process killed on using Ctrl-C
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
тАО09-09-2009 04:20 AM
тАО09-09-2009 04:20 AM
Re: Back ground process killed on using Ctrl-C
Yes i did try this out... But wat i see is when Control-C is pressed, the sleep continues in the background but the process still dies out ...Why is this so ...
Is there anyway is could make the process neglect this interrupt signal like by using something like trap or omintr ...Would changing this help me in any manner ...
Thnx for ur reply ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2009 04:28 AM
тАО09-09-2009 04:28 AM
Re: Back ground process killed on using Ctrl-C
The sleep continues and then it echoes the message after sleep. So that case works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2009 04:37 AM
тАО09-09-2009 04:37 AM
Re: Back ground process killed on using Ctrl-C
Look mine being a menu driven script i need to continue one activty after the other.So what i did was ,i calld this script in the background, which first starts the process in the background and then the sleep of arnd 30 sec in the background.
On doin so i happend to see that when both sleep and my process are running in the background and if i press Control-C , the sleep still continues, but the process dies out.
Hope you understand what i mean ...
Thnx for the reply ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2009 12:52 AM
тАО09-10-2009 12:52 AM
Re: Back ground process killed on using Ctrl-C
I thought I did but my small example works fine.
Here is where tusc can help you find what's different in your case and my small example.
Did you ever try redirecting stdin to /dev/null?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2009 02:35 AM
тАО09-10-2009 02:35 AM
Re: Back ground process killed on using Ctrl-C
> Here is where tusc can help you find what's different in your case
Yes i know but i have a problem here.I dont have tusc installed on my server and installing it aint that easy with all the restrictions applied...(but iam still working on getting it installed).Can i use tusc for all versions of HP-Ux ???
>redirecting stdin
Yes i tried that out too ...
If my executable name is :TradexLocMon
arguments are : 2 and 2
then redirecting it to dev/null would be like this rite..
#TradexLocMon trdxdev 2 2 & 0>/dev/null
Well this dint work either :(
Its that the sleep process doesnt seem to have any problem with the interrupt signal ...Just that my process simply wont stay arnd at that time ;)
Thnx for the reply ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2009 03:22 AM
тАО09-10-2009 03:22 AM
Re: Back ground process killed on using Ctrl-C
> Can i use tusc for all versions of HP-Ux ???
Binaries for 11.11, 11.23 and 11.31 are available from the HP-UX Porting Centre:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.82/
Installation takes just a minute or two and no reboot is required. The product is installed into '/usr/local/bin' using the standard SD ('swinstall') tools so that it can be tracked like any product ('swlist") and removed ('swremove') if later desired.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2009 03:53 AM
тАО09-11-2009 03:53 AM
Re: Back ground process killed on using Ctrl-C
#TradexLocMon trdxdev 2 2 & 0>/dev/null
Well you have a typo and I would reorder it as:
TradexLocMon trdxdev 2 2 < /dev/null &
- « Previous
- Next »