kill job in directory

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers kill job in directory
# 1  
Old 06-07-2002
Question kill job in directory

This might be a stupid question, but here it goes. Do you use the same command to kill a job in a directory as you would from the root prompt?

And in that directory, how would you know which job is the oldest?

# 2  
Old 06-07-2002
Well, jobs don't really reside in a directory. Every process will have a current working directory, but that is just a default place to look for stuff. The process itself doesn't sit there.

The root prompt usually refers to this:

which indicates that the user running the shell is a special user called "root" who has special power. The user called "root" should not be confused with / which is the root directory.

And the kill command should not work differently based you your current directory. But the kill command does work differently for the user "root". Ordinary users can kill only thier own processes. But root can kill almost any process.

Don't be afraid to ask newbie questions. None of us were born knowing this stuff.
# 3  
Old 06-10-2002
i do know how to kill a job from root, but in a root directory i have some jobs that are spooled and sometime there is just one that has garbage that needs to be killed.

when i do "try" to kill the job in the directory, nothing happens. the job is still there. that is why i was asking if a different command is used when you kill a job under a directory.
# 4  
Old 06-10-2002
Is this a question about jobs submitted via the "at" command? If so, "at -l" can list them all and "at -r jobid" can remove them. The "at" command does store furure jobs in a directory, but you should be using the "at" command itself to manage them.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cron Job failure - No such file or directory

Hi all, I'm having an issue with a script i wrote to pull information from the Amazon AWS API. Basically the script takes arguments from the command line and attempts to grab user information for each AWS access group. The command is issued like this: # sh <outputFileName>... (3 Replies)
Discussion started by: ChocoTaco
3 Replies

2. Shell Programming and Scripting

Kill an specific process ID using the KILL and GREP commands

Good afternoon I need to KILL a process in a single command sentence, for example: kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'` That sentence Kills the process ID corresponding to the program CAL255.4ge. However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies

3. Shell Programming and Scripting

Cron job and shell script to kill a process if memory gets to high

Hello, I'd like to set a cron job that runs a shell script every 30 minutes or so to restart a java based service if the memory gets above 80%. Any advice on how to do this? Thanks in advance! - Ryan (19 Replies)
Discussion started by: prometheon123
19 Replies

4. Shell Programming and Scripting

Cron job to move file from one directory to another

Hi, I have following directory structure Media (Inside media directory I have two folders namely videos and images) -->videos -->images Inside media directory I have some video files with extension .mp4 and images with extension of .jpg and .jpeg I want to write a cron job which will... (3 Replies)
Discussion started by: tusharkale
3 Replies

5. Shell Programming and Scripting

Kill a process without using kill command

Sorry, posted the question in other forum. (0 Replies)
Discussion started by: sudhamacs
0 Replies

6. UNIX for Dummies Questions & Answers

How to kill a job compeltely

Greetings, one of my job is running for a long time. I killed using kill -9 <process_id> when i check the process status (ps -ef) i couldnt find that process. But when i give showjob <system_name> -q <queue_name> i can find that job in queue and is still in running status. I deleted all the... (2 Replies)
Discussion started by: skcontact
2 Replies

7. UNIX for Dummies Questions & Answers

Kill a Job in Autosys

Hi, I have done kill-9 xxx for a job which is running in Autosys. But when i use autorep -j xxx it is showing the job is in run status. How to kill a job in Autosys which is in running status.. Thanks Arun (3 Replies)
Discussion started by: arunkumar_mca
3 Replies

8. UNIX for Dummies Questions & Answers

CRON job to execute all scripts in a directory

Hi everyone: I'm trying to make a CRON job that will execute Fridays at 7am. I have the following: * 7 * * 5 I've been studying up on CRON and I know to have this in a file and then "crontab filename.txt" to add it to the CRON job list. The CRON part I believe I understand, but I would... (6 Replies)
Discussion started by: Annorax
6 Replies

9. UNIX for Advanced & Expert Users

When kill doesnt work, how to kill a process ?

Hi All, I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages. How can i terminate this daemon ? ? ? Regards, Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies

10. UNIX for Dummies Questions & Answers

how to kill process while keeping the submitted job running

:confused: I have a process which was schedule to run from 8am - 6pm daily. The scripts will search & run the commands that i was predefined in the database. Ususally, there were about 6-7 jobs for each submission and each job takes about 1-2 hrs and running one by one. And, I have a cron job... (3 Replies)
Discussion started by: hk_newbie
3 Replies
Login or Register to Ask a Question