LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-16-2009, 02:06 PM   #1
jjge
Member
 
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 108

Rep: Reputation: 16
How do I kill an at job?


I have started an infinite job under at. Now I want to stop it, and I cannot find out, how!

atq shows nothing, neither under root nor as myself. Well, I guess it isn't queued anymore...

It is also not shown under "ps ax", well, I guess that it runs under atd.

In man atd I found that atd looks in the /var/spool/atjobs directory. That contained one file .SEQ . I deleted that file, but still my infinite job comes back to life, even when I restart the whole system :-(
 
Old 02-16-2009, 02:32 PM   #2
jjge
Member
 
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 108

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jjge View Post
It is also not shown under "ps ax", well, I guess that it runs under atd.
Wrong guess... I KILLed atd, but the job is still running.
 
Old 02-17-2009, 03:35 AM   #3
jjge
Member
 
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 108

Original Poster
Rep: Reputation: 16
I tried lsof | grep traffix (traffix is the logfile) and I found a sleep 60s commando. Aha! That's right; the job is a continuous while ... sleep 60 cycle. Well, I killed it, and it reappeared with a different PID.

I renamed the command script, and restarted the whole system, and finally the job went away.

And I still don't know, how it resurrected every time, even after a full restart of the system.
 
Old 02-17-2009, 06:26 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
At was running under init, with respawn specified. That's a tough one.
 
Old 02-17-2009, 06:39 AM   #5
jjge
Member
 
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 108

Original Poster
Rep: Reputation: 16
... but then it should be in /etc/inittab, shouldn't it?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to kill a back-grounded job? manojg Linux - Newbie 6 05-23-2008 04:01 PM
Can you start a job without getting the job number spit back out? BrianK Linux - General 5 12-13-2007 09:09 PM
how to use kill to kill a batch of processes with same name? dr_zayus69 Linux - Software 2 09-03-2005 07:35 PM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 03:32 PM
how to kill a print job gsikora Linux - General 4 07-31-2003 11:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration