LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 01: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, 01: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, 02: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, 05:26 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
At was running under init, with respawn specified. That's a tough one.
 
Old 02-17-2009, 05: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



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 03:01 PM
Can you start a job without getting the job number spit back out? BrianK Linux - General 5 12-13-2007 08:09 PM
how to use kill to kill a batch of processes with same name? dr_zayus69 Linux - Software 2 09-03-2005 06:35 PM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM
how to kill a print job gsikora Linux - General 4 07-31-2003 10:26 PM

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

All times are GMT -5. The time now is 02:26 PM.

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
Open Source Consulting | Domain Registration