- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: at command and finding sleeping process
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
тАО03-15-2005 08:50 AM
тАО03-15-2005 08:50 AM
Doug
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 09:00 AM
тАО03-15-2005 09:00 AM
SolutionParent process of the at job will be cron. DO NOT kill cron.
UNIX95= ps -efH
Execute the above command. This will display the process tree.
Look at the time the sleep was started. If it matches with the time you scheduled the at job for, I would go ahead and kill the process
- Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 09:04 AM
тАО03-15-2005 09:04 AM
Re: at command and finding sleeping process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 09:07 AM
тАО03-15-2005 09:07 AM
Re: at command and finding sleeping process
A record of spooled at jobs is created in the /var/spool/cron/atjobs directory, where a separate file is
created for each job. This file contains commands to be executed and the values of environment variables.Or u can use "at -l" to list the current jobs...
Mitra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 09:08 AM
тАО03-15-2005 09:08 AM
Re: at command and finding sleeping process
sleep;
test and execute cmd;
exit;
Is there anyway to kill the "script" or do I just have to let it run it's course?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 09:12 AM
тАО03-15-2005 09:12 AM
Re: at command and finding sleeping process
# chmod +x somescript
# at now
/home/root/somescript
warning: commands will be executed using /usr/bin/sh
job 1110924606.a at Tue Mar 15 17:10:06 2005
#
# UNIX95= ps -efH | more
...............
root 2252 1 0 Jan 23 ? 00:15 /usr/sbin/cron
root 10295 2252 0 17:10:13 ? 00:00 sh
root 10296 10295 0 17:10:13 ? 00:00 sh
root 10297 10296 0 17:10:13 ? 00:00 sleep 3600
...............
#
Just kill the sleep - you should be fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 09:37 AM
тАО03-15-2005 09:37 AM
Re: at command and finding sleeping process
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 11:07 PM
тАО03-15-2005 11:07 PM
Re: at command and finding sleeping process
Do a ps -ef and find your process. Look for the PPID colom. DO a ps -ef and pipe the grep for the PPID. If it is the correct one ... kill the parent and then the child.
HTH
Gerhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 01:38 PM
тАО04-30-2009 01:38 PM