Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-17-2011, 01:40 AM   #1
LQ Newbie
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
Hi I need to know that whether nohup command will run even if the server is bounced

It menas when we shutdown and restart the server.the nohup command wil run or again we have to give the command?Please answer this ASAP.
Old 10-17-2011, 02:35 AM   #2
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi and welcome to LQ,

First of all: We are all volunteers here at LQ and "demanding" an answer ASAP is not how we like to see things done around here. Please refrain from doing this in the future.

About your question: You need to restart the job. A restart/reboot will kill all running processes, using nohup and/or putting it in the background (&) will not protect you from this.

Hope this helps.
1 members found this post helpful.
Old 10-17-2011, 04:13 AM   #3
LQ Newbie
Registered: Oct 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Am very mistake I typed like that.Very sorry again.
About your answer,it means that if we restart the server ,then again we have to run the nohup command.

But in our application one Poller class is there,it picks the request for every 5 minuts.We are calling that class in one shell program and we run that program by using below command
all files we put in one directory.

nohup sh &

This command we run when ever poller not picking up the requests.It is very rare.Though we restart the server also it picks up.

So my question is y some times its not picking up irrelevent to the restarting of server and also in another testing environment this startup directory is placed in another server.Now we want to change that directory and place that directory in application server it self.So for that we just paste the directory in our appserver and run that command is enough or we ahev to do any other changes.Kindly help me.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to run nohup with password? your_shadow03 Linux - Newbie 9 04-15-2012 05:45 AM
ssh command, nohup and startx j_kubik Linux - Newbie 7 06-24-2011 02:09 PM
Difficulty in understanding nohup Command. sowraj Linux - Newbie 2 01-28-2010 01:59 AM
problem with nohup command and nohup file size vbseeker Linux - General 1 09-17-2006 11:36 AM
nohup command chbin Slackware 1 03-31-2005 03:47 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration