- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing the loop script which started by at comma...
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
Forums
Discussions
Discussions
Discussions
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
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
11-22-2006 05:18 PM
11-22-2006 05:18 PM
I started a loop script which is running coninously in a time of 3 seconds...by the at command..
I dont know how to stop the script., When I try to kill the process since it is a loop command the process ID get changed immediately and I cant able to kill the process.
I deleted the script which the 'at' command used to start the loop., but it doesnt stop..
Regards
Suseendran ,A
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 05:44 PM
11-22-2006 05:44 PM
SolutionCertain solution:
Stop the server, restart it, the script will no longer be running.
Other possibilities:
/sbin/init.d/cron stop
I know Linux has a separate daemon for cron, but I think HP-UX has not gone to that insanity yes. If cron is spawning it, this will help.
After stopping cron, you may need to kill the current version of the script.
This may not help, since the script is spawning itself every three seconds.
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
11-22-2006 05:48 PM
11-22-2006 05:48 PM
Re: Removing the loop script which started by at command
try to do:
1. at -l
2. at -r
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 02:00 PM
11-27-2006 02:00 PM
Re: Removing the loop script which started by at command
That should do it unless your script makes a copy of itself when it invokes at(1)? Or do you use at -f?
>SEP: If cron is spawning it, this will help. After stopping cron,
You might be able to suspend cron by using:
kill -STOP cron-pid
Then hunt down and clean up your script. Then resume by:
kill -CONT cron-pid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 05:44 PM
11-27-2006 05:44 PM
Re: Removing the loop script which started by at command
kill -9 cron
now there is no more cron process running in my server., but stilll
[root@nibappsun07 /]$ ps -eaf | grep sleep
build 29854 4863 0 12:10:54 ? 0:00 sleep 5
build 29852 6664 0 12:10:53 ? 0:00 sleep 5
build 29850 4683 0 12:10:53 ? 0:00 sleep 3
[root@nibappsun07 /]$
[root@nibappsun07 /]$
[root@nibappsun07 /]$ ps -eaf | grep sleep
build 29854 4863 0 12:10:54 ? 0:00 sleep 5
build 29852 6664 0 12:10:53 ? 0:00 sleep 5
build 29858 4683 0 12:10:56 ? 0:00 sleep 3
root 29860 29655 0 12:10:56 pts/14 0:00 grep sleep
[root@nibappsun07 /]$ ps -eaf | grep sleep
build 29864 4863 0 12:10:59 ? 0:00 sleep 5
build 29862 6664 0 12:10:58 ? 0:00 sleep 5
build 29866 4683 0 12:10:59 ? 0:00 sleep 3
root 29868 29655 0 12:11:00 pts/14 0:00 grep sleep
[root@nibappsun07 /]$ ps -eaf | grep sleep
build 29883 4863 0 12:11:09 ? 0:00 sleep 5
build 29881 6664 0 12:11:08 ? 0:00 sleep 5
build 29879 4683 0 12:11:08 ? 0:00 sleep 3
root 29885 29655 0 12:11:10 pts/14 0:00 grep sleep
[root@nibappsun07 /]$
Still my process is running....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 06:11 PM
11-27-2006 06:11 PM
Re: Removing the loop script which started by at command
I see 29854 twice, if you were fast, you could kill it. :-) Can you make sure cron didn't restart?
Why are there 3 "sleep"s? You might want to use the following to show the whole tree:
UNIX95= ps -Hfu build
If you are really using at(1), you could add "build" in /usr/lib/cron/at.deny.
You could try killing the parent process for sleep: 4863, 6664, 4683
You might want to do "ps -fp 4863 -p 6664 -p 4683" first, to see what they are.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 07:12 PM
11-27-2006 07:12 PM
Re: Removing the loop script which started by at command
Killing the parent process works...
Really happy to share my cheers with all..
Here is for a Glance
__________________________________________
[build@nibappsun07 build]$ kill -9 4863
[build@nibappsun07 build]$
[build@nibappsun07 build]$ ps -eaf |grep sleep
build 8476 1 0 13:39:16 ? 0:00 sleep 5
build 8478 6664 0 13:39:17 ? 0:00 sleep 5
build 8480 4683 0 13:39:17 ? 0:00 sleep 3
build 8482 8322 0 13:39:20 pts/12 0:00 grep sleep
[build@nibappsun07 build]$
[build@nibappsun07 build]$
[build@nibappsun07 build]$ kill -9 6664
[build@nibappsun07 build]$ ps -eaf |grep sleep
build 8505 1 0 13:39:37 ? 0:00 sleep 5
build 8509 8322 0 13:39:40 pts/12 0:00 grep sleep
build 8507 4683 0 13:39:38 ? 0:00 sleep 3
[build@nibappsun07 build]$ kill -9 4683
[build@nibappsun07 build]$
[build@nibappsun07 build]$
[build@nibappsun07 build]$ ps -eaf |grep sleep
[build@nibappsun07 build]$
[build@nibappsun07 build]$
_______________________________
Regards
Suseendran, A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 07:25 PM
11-27-2006 07:25 PM
Re: Removing the loop script which started by at command
I was really interested in seeing the whole tree. But it could be explained by a simple for/while loop with a sleep.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2006 07:48 PM
11-30-2006 07:48 PM