Operating System - HP-UX
1833897 Members
1763 Online
110063 Solutions
New Discussion

Re: why this message comes while exit ?

 
rveri
Super Advisor

why this message comes while exit ?

Hi All ,

Why "There are running jobs" , message comes when exiting using exit. And also I have not stared any job , while i was logged in this session as root.


-----
root@dbora01:/home/ac1 >exit
There are running jobs.
root@dbora01:/home/ac1 >
---

Thanks,
5 REPLIES 5
Indira Aramandla
Honored Contributor

Re: why this message comes while exit ?

Hi rveri,

There may be jobs that are runing in the back ground. Do fg to see what the jobs are.



Indira A
Never give up, Keep Trying
Senthil Kumar .A_1
Honored Contributor

Re: why this message comes while exit ?

Hi,

Please check there indeed is a background job or not. To check,execute the following commands,

#jobs
#ps -t `tty`

Regards,
Senthil Kumar .A

Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Bharat Katkar
Honored Contributor

Re: why this message comes while exit ?

Hi,
There are some jobs running in background. As already suggested you need to check what all jobs are running. You either wait for their completion or stop them by bringing back to foreground.

In future if you would like to run the job in background and exit then putting them in background with "nohup" option.

Regards,
You need to know a lot to actually know how little you know
Senthil Prabu.S_1
Trusted Contributor

Re: why this message comes while exit ?

Hi,
It seems some process are running in back ground.

Here, if you type "exit", you are about to close your shell. So all process will get killed.

So, from next time, use nohup to call you process, such that it runs even you close your session [ie, shell].

HTH,
Prabu.S

One man's "magic" is another man's engineering. "Supernatural" is a null word.
Nandini Gowda
New Member

Re: why this message comes while exit ?

Hello rveri,

There might be jobs running in background.A job is a process like a running program. So when you give 'exit' command its a warning given to you.as you are closing your shell. So all process will get killed.

You can check the current background jobs running by giving command "jobs". If you see any jobs running you can stop or suspend them if not required.

Warm Regards,
Nandini