exit unix, but says running jobs


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers exit unix, but says running jobs
# 1  
Old 10-24-2002
exit unix, but says running jobs

hi, i give a exit to the system, but it says that i have running jobs... so i do a ps and it displays two lines, one is a -ksh and the other is the ps which i am issuing...

then i give a who -uH, find my pts.. then do a grep... still the same.....

whats wrong..
yls177
# 2  
Old 10-24-2002
Tools

Maybe you started some backgroup jobs
you can find out with the `jobs` command
jobs [-lpn] [job ...]
Display information about the specified job(s); if no jobs are
specified, all jobs are displayed. The -n option causes informa-
tion to be displayed only for jobs that have changed state since
the last notification. If the -l option is used, the process ID
of each process in a job is also listed. The -p option causes
only the process group of each job to be printed. See Job
control below for the format of job and the displayed job.


See also the `bg` and `fg` parts of the man page `man ksh`


See this example

<prompt>$ sleep 600
^Z[1] + Stopped (SIGTSTP) sleep 600

<prompt>$ bg
[1] sleep 600&

<prompt>$ exit
You have running jobs

<prompt>$ jobs
[1] + Running sleep 600

<prompt>$ fg
sleep 600
^C<prompt>$
# 3  
Old 10-24-2002
Maybe zombis in memory (dead processes, but to be in memory)
# 4  
Old 10-24-2002
if dead process, but they are still in memory then how do we clear then?

thanks
yls177
# 5  
Old 10-25-2002
Sorry, buddy.........i don't know.......maybe only with reboot.....
# 6  
Old 10-25-2002
see command: waitpid
# 7  
Old 10-25-2002
I never saw your problem together with Zombie procces.
Do you have this problem often?, NO try to live with it

Iam really think you can find those processes in your proces list,
try

ps -eaf | grep <username>
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Efficient UNIX Memory management for Running MapReduce Jobs.

We are trying to set up a single node cloudera hadoop cluster having 16 GB as RAM on linux machine. We are setting up 5.4.2 version. Now when we check statistics post the installation and run the top command we find that only 1 -2 GB is available. when we trigger map reduce sample job - no... (2 Replies)
Discussion started by: ketankirange
2 Replies

2. Shell Programming and Scripting

Jobs running in a server

Hi, I need to know the jobs running in a server for all users in linux, crontab -l gives for particular user, how ever I need for all users. I have sudo user access. Thanks (4 Replies)
Discussion started by: nag_sathi
4 Replies

3. Shell Programming and Scripting

Running jobs in parallel

I need to process 50 sqlplus scripts which are listed in a text file. I need to develop a shell script that'll read this file and run these sqlplus scripts. At any point of time, the number of sqlplus scripts running shouldn't exceed 6. If any of the sqlplus scripts completes successfully then... (17 Replies)
Discussion started by: gctex
17 Replies

4. UNIX for Dummies Questions & Answers

at jobs not running

im doing at now <return> touch ~/Desktop/file.txt <ctrl d> and file is never created though it says job 7 at Wed Mar 17 15:15:55 2010 why? (4 Replies)
Discussion started by: glev2005
4 Replies

5. UNIX for Dummies Questions & Answers

Unix Batch command, and running jobs in queues.

Hello all, I have a quick question. I work in a computational science laboratory, and we recently got a few mac pros to do molecular optimizations on. However, on our normal supercomputers, there are queue systems, mainly PBS. Anyway, the macs obviously don't have PBS, but I've read about... (0 Replies)
Discussion started by: corrado33
0 Replies

6. Programming

exit status running java classpath in unix shell

I have a java classpath running inside of a unix shell script. During my testing it will error with lines that show an example like this below. java.io.FileNotFoundException error at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:129), ... (2 Replies)
Discussion started by: mmcds
2 Replies

7. Shell Programming and Scripting

background jobs exit status and limit the number of jobs to run

i need to execute 5 jobs at a time in background and need to get the exit status of all the jobs i wrote small script below , i'm not sure this is right way to do it.any ideas please help. $cat run_job.ksh #!/usr/bin/ksh #################################### typeset -u SCHEMA_NAME=$1 ... (1 Reply)
Discussion started by: GrepMe
1 Replies

8. Shell Programming and Scripting

Issues with exit after running jobs in background

I have the following sample script to run a script the jobs with the same priority(in this case field3) in parallel; wait for the jobs to finish and run the next set of jobs in parallel.When all the lines are read exit the script. I have the following script which is doing evrything I want... (1 Reply)
Discussion started by: hyennah
1 Replies

9. UNIX for Dummies Questions & Answers

running cron jobs

I would like to add a job using cron. I have following questions - cron jobs are launched using what login-id e.g. is the script launced using my login-id - In which directory would the cron jobs be launched ? - where do the environment variables required in the script being lauched come... (3 Replies)
Discussion started by: sharanbr
3 Replies

10. Shell Programming and Scripting

running cron jobs

Hi, I'm new to cron and I would like to know if this cron entry looks right. Every monday to friday, at 9:15 AM execute the script called done_att.sh Every monday to friday, at 3:15 PM execute the script called start_att.sh 15 09 * * /u54/jobs/done_att.sh 45 15 * *... (1 Reply)
Discussion started by: ted
1 Replies
Login or Register to Ask a Question