can't cancel nohup job


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers can't cancel nohup job
# 8  
Old 05-22-2009
Who owns the files that are being created? Can you do a
Code:
 ps -eaf | grep <owner of files>

# 9  
Old 05-22-2009
I own the files being created
Code:
ps -eaf | grep epxlp

gives:
Code:
epxlp    15156 29952  0 11:14 pts/7    00:00:00 -bash
epxlp    17349 15156  0 13:36 pts/7    00:00:00 ps -eaf
epxlp    17350 15156  0 13:36 pts/7    00:00:00 grep epxlp
root     29950 13361  0 09:33 ?        00:00:00 sshd: epxlp [priv]
epxlp    29952 29950  0 09:33 ?        00:00:00 sshd: epxlp@pts/7
epxlp    29953 29952  0 09:33 ?        00:00:00 /usr/libexec/openssh/sftp-server

# 10  
Old 05-22-2009
That was just a thought, but in actuality, `nohup` processes are owned by init (PID=1). Is it possible that it's a zombie? Try
Code:
ps -eaf | grep defunct

Also, what kind of UNIX / Linux are you on?
# 11  
Old 05-22-2009
Give a try to this:
ps -ef | grep <script>

Don't remember but there is a catch with the -a flag.
# 12  
Old 05-22-2009
that gives nothing
I am on Linux

maybe I'll just have to wait for the job to finish running, might be done before I go home today Smilie
# 13  
Old 05-22-2009
Ooops,

I thought it's solaris.
# 14  
Old 05-22-2009
One thing you might do when you change your script is to create the file with the PID appended to the filename.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Saving nohup output to a file other than nohup.out

Shell : bash OS : Oracle Linux 6.4 I want to save the ouput of a nohup command to file other than nohup.out . Below are my 3 attempts. For both Attempt1 and Attempt2 , the redirection logs the output correctly to the output file. But I get the error "ignoring input and redirecting stderr to... (7 Replies)
Discussion started by: kraljic
7 Replies

2. Shell Programming and Scripting

how do i execute nohup and background job inside the korn script for db2

load_cursor_stmt() { ls /db/admin/ddl/rmn01000/load_cursor*.sql|while read file do echo "${file}" `nohup db2 -tvf "$file" \&` done }Error: ------- /admin/ddl/rmn01000/load_cursor5.sql /db/admin/ddl/rmn01000/load_cursor6.sql + read file + echo... (3 Replies)
Discussion started by: Hangman2
3 Replies

3. UNIX for Dummies Questions & Answers

nohup - sub job in script not executing until I exit

My job is launched using this command: I'm at home and having VPN drops so I used nohup and background. nohup perf_mon -c rating_4_multi,cfg & The main script is PID 26119, and the sub task under it is 26118 which is not running - just sits there. 26119 runs forever but nothing else runs. I... (2 Replies)
Discussion started by: ido1957
2 Replies

4. HP-UX

i want to cancel printing job

hi every body i used " lpstat -o" to show the printer jobs and i already canceld it by "cancel -e -f jobid" but the problem i found when used " lpstat -o" again it said that job in progress i think because it in the buffer but i don't know how to clear the printer. (9 Replies)
Discussion started by: maxim42
9 Replies

5. AIX

Backgroup job using nohup

Hi, I ran a program like following sample.sh & Later I realized that this job will take more hours to complete. Since it consumed 2 hours dat aprocessing and I don't want to terminate and then start the job like nohup sample.sh & Can you please tell me, is it possible to make this job no... (5 Replies)
Discussion started by: shahnazurs
5 Replies

6. Shell Programming and Scripting

stoped job using ctrl+z now want to run in nohup

once i have stoped process by ctrl+z then i want to run it again in nohup plz help me out. (6 Replies)
Discussion started by: RahulJoshi
6 Replies

7. Solaris

Cron Job... How to cancel it.

Hello, I am sort of new to cron jobs, I have a cron job running everyday that no longer needs to. How do I cancel it? (4 Replies)
Discussion started by: komputersman
4 Replies

8. Shell Programming and Scripting

nohup in cron job

Hello, I have bunch of shell scripts, which I want to execute every hour in the background. So I created a script mainscript.sh which executes these hourly scripts in the background. Script goes like this. mainscript.sh #!/bin/sh nohup sh subscript1.sh & nohup sh subscrip2.sh & exit 0 ... (5 Replies)
Discussion started by: papachi_2000
5 Replies

9. UNIX for Advanced & Expert Users

cancel the massage

Hi all In Aix system Someone know i want to cancel the massage. if some user print something and user root deleting the job i got brodcast message " message from queueing system job number XXX has been deleteing from queue. <EOT> " I use the cancel command (1 Reply)
Discussion started by: goldfelda
1 Replies

10. UNIX for Dummies Questions & Answers

Permission Denied when cancel lp job

Sun E5000 running Solaris 8 I receive permission denied error when attempting to cancel a print job as root, user, or lp. I found a tech tip that said to remove the tcp lp listeners but that didn't help. I can clean the queue using the old sun lpc command but my users need to be able to cancel... (2 Replies)
Discussion started by: Ron Restieri
2 Replies
Login or Register to Ask a Question