LinuxQuestions.org
Help answer threads with 0 replies.
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 03-31-2009, 08:47 AM   #1
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 110
Blog Entries: 1

Rep: Reputation: 16
Close terminal during applying patch . . .


Dears,,

During applying Oracle Patch in Linux,
I closed the terminal by mistake.

Is this stop the applying patch process?

Thanks,,
 
Old 03-31-2009, 11:59 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by eng_mohammedmostafa View Post
Dears,,

During applying Oracle Patch in Linux,
I closed the terminal by mistake.

Is this stop the applying patch process?

Thanks,,
Yes, since you killed the process that was running, unless you nohup'ed and backgrounded it.

And did you look to see if it completed afterwards, which would tell you if it finished or not??
 
Old 04-01-2009, 03:51 AM   #3
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 110

Original Poster
Blog Entries: 1

Rep: Reputation: 16
Dear

I understood from you that the process stopped since i closed the terminal.
What is the command that enable me to background the process to keep it running even i closed the terminal?
Is there a command show me the processes that are running now?

Thanks,,
 
Old 04-01-2009, 05:01 AM   #4
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Put something in background by putting a & after it. E.g. $ eaglemode &

Another thing is ctrl+z. See other jobs with $ jobs. Go to a job, with %n where n is the number of the job - you get this number from $ jobs.

Quote:
nohup(1) - Linux man page
Name
nohup - run a command immune to hangups, with output to a non-tty
Synopsis
nohup COMMAND [ARG]...
nohup OPTION
Description

Run COMMAND, ignoring hangup signals.

--help
display this help and exit
--version
output version information and exit

NOTE: your shell may have its own version of nohup, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports.

Last edited by lugoteehalt; 04-01-2009 at 05:04 AM.
 
Old 04-01-2009, 05:45 AM   #5
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 110

Original Poster
Blog Entries: 1

Rep: Reputation: 16
Many thanks for clarifications . . .
Best regards,,
 
Old 04-01-2009, 09:24 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by lugoteehalt View Post
Put something in background by putting a & after it. E.g. $ eaglemode &

Another thing is ctrl+z. See other jobs with $ jobs. Go to a job, with %n where n is the number of the job - you get this number from $ jobs.
That will put it in the background, yes. But if you do that, and close the terminal window you started it in, the job will still stop, because you killed the parent process.

To keep the job running, regardless of killing the terminal window or not, you have to start it with a nohup (I mentioned it in my first post), such as "nohup myjob &". That will start a new parent process, and put the whole thing in the background, making it totally independent of the parent terminal.
 
  


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
Applying patch from CD-ROM M K Mandriva 1 01-26-2006 01:26 PM
applying patch? alaios Linux - General 1 11-29-2004 10:41 AM
error while applying patch corbis_demon Programming 1 08-14-2004 11:21 AM
applying a patch darthczyz Linux - Newbie 2 05-07-2004 08:44 AM
Applying patch HOWTO webboss Linux - Software 0 09-27-2001 02:33 AM

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

All times are GMT -5. The time now is 08:01 AM.

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