General :: Difference Between Nohup And Bg Commands?

May 7, 2010

Does the nohup command make a process immune to the HUP signal by sending the process to the background or does it achieve this by some other means? If it it does send it to the background, then are all background processes immune to the HUP signal? If yes, then we can make processes go to the background for getting immunity against HUP by using the bg command as well can't we?

View 2 Replies


ADVERTISEMENT

Programming :: How To Test Disown And Nohup Commands

Mar 20, 2010

I ran a perl script in background with nohup and disown to make sure my script runs even after the parent process is terminated.

Method 1: nohup
> nohup perl run.pl &
[1] 2080

Method 2: disown
> perl run.pl &
[2] 2448
> disown

In either method, the script process doesn't seem to connect to init process, when I checked using pstree command. I thought, the disown or nohup command detaches the process from its parent and attaches it to grand grand parent init process. And it disables SIGHUP signal to my script process. But the pstree command didn't show me what I expected. It still shows my script process attached to my current terminal process. I just don't understand the concept behind these two commands (nohup and disown). Is there any way, I can see the list of processes that are run by nohup or disown command?

View 2 Replies View Related

General :: Difference Between Tar And Zip Commands?

Jun 30, 2011

I have just started learning linux basic commands.one explain what is the difference between tar and zip commands.

View 7 Replies View Related

General :: Difference Between Commands Tar -xvf And Tar - Xzf?

Aug 2, 2011

What is the difference between the commands tar -xvf and tar -xzf?

View 4 Replies View Related

General :: Difference Between Less & More Pager Commands?

Aug 10, 2011

less & more are both the pager commands. Any major difference

View 4 Replies View Related

General :: Difference Between These Terminal Commands?

Feb 18, 2011

difference between these terminal commands?

dpkg -l
dpkg -list
dpkg -list | less

View 9 Replies View Related

General :: Difference Between The Shutdown, Halt And Reboot Commands?

Jan 23, 2011

Should I be using one or the other for different things?

View 1 Replies View Related

General :: Networking Commands - Difference Between Ethtool And Miitool

Jun 21, 2010

I just started learning network on linux platform. Today I came across two commands ethtool and miitool. Both of them seems to do similar kind of jobs. Now I am confused what is the difference between them.

View 2 Replies View Related

General :: How To Run Nohup With Password

Jan 27, 2010

I have a ssh command as shown:

Code:
ssh remoteusr@<ip> "perl ./monitor.pl count_pages" | /monty/graphs/mail.pl

This command connects to remote machine and fetches data which gets continously streamed at screen(shown at terminal). If I do Ctrl+Z and bg to put it into background. Works Fine. But when i close the putty, it gets closed surprisingly.

I tried with nohup <command> & But wonder how to provide password.

View 8 Replies View Related

General :: Nohup Does Not Run Process In Background

Apr 11, 2011

I run

nohup bash -c "while [ true ]; do echo test; done"

from PuTTy SSH client but after this process is not runned in background instead nohup keeps to be foreground process in shell.

SW version: nohup (GNU coreutils) 8.5

View 1 Replies View Related

General :: How To Attach To A Nohup Process

Jun 3, 2011

If I start a process with nohup:

nohup WHATEVER &

then how can I see it again? I mean how to attach my terminal to it again under Linux, e.g.: Ubuntu 11.04 - just like with the screen package.

View 2 Replies View Related

General :: Difference Between Make And Make BzImage Commands?

Feb 23, 2010

difference between make and make bzImage commands as both are used to build source code.

View 1 Replies View Related

Programming :: Difference Between Two Find Commands?

Dec 27, 2009

Code:

find . -name *.txt

Code:

find . -name *.txt

View 10 Replies View Related

Server :: Difference Between VCS Commands In Solaris10 And Rhel5

Mar 3, 2011

I need to clarify a few things about Veritas Cluster Services Example There is a solaris10, 2node vcs cluster running. There is a Rhel5 2node vcs cluster running. Is ther any difference between VCS commands in solaris10 and rhel5. I heard that VCS commands are same for all the platforms, only configuration files location is differ. Is this correct.

View 6 Replies View Related

General :: Can I Force Nohup Output To Screen Instead Of A File

Nov 9, 2010

When I run a script with nohup, the output is forced to the out.log file by default; is there a way to force the output to the screen instead of the file? I need to be able to see when my script gives me a "process started" message, and I don't want to clog up the system with log files.

View 2 Replies View Related

Ubuntu :: Difference Between The Mac Terminal Commands And Internet Tutorials?

Dec 27, 2010

I'm currently looking at a Mac Terminal tutorial:[URL]... I want to learn about Linux Terminal, is there a difference between the Mac Terminal and Linux Terminal commands and Internet tutorials?

View 1 Replies View Related

General :: Difference Between The Commands "su" And "sudo -i"?

May 31, 2010

What is the difference between the commands "su" and "sudo -i"?

When I do sudo -i, it asks me the password and after typing my password, I login.

But when I do "su",it asks for my password, and I type the same password as for the sudo -i, but the terminal shows su: Authentication failure Why is it so? Does these commands have different passwords? If so I've forget password for "su". Now what to do?

View 2 Replies View Related

Ubuntu :: Use Nohup And Script Command Together?

Nov 8, 2010

I want to use nohup and script command together but they don't work. Normally I use

Code:
script -c "./run arg1" run-log.txt

Then I want to send that command in background with nohup:

Code:
nohup "script -c "./run arg1" run-log.txt" &

but I get this error:

Code:
nohup: ignoring input and appending output to `nohup.out'

nohup: cannot run command `script -c "./run arg1" run-log.txt': No such file or directory

View 5 Replies View Related

Ubuntu :: Bring Back Program Submitted By Nohup?

Apr 21, 2010

I had a make file which deals with hundreds of thousand jpeg images. I submitted this job by using: nohup make & Is there any possible way that brings this program back to foreground? I can only use ps to monitor the status, command jobs cannot find it.

View 1 Replies View Related

General :: Difference Between Df -k And Du -sh?

May 5, 2011

df -k
/dev/sda6 25396228 21249088 2836240 89% /export
21G used[code].....

The 3.4G is correct because we have removed all non essential file but free space reported by df is not consistent with the actual free space that should be there.

View 3 Replies View Related

General :: Difference Between GLX And EGL

Apr 4, 2011

the difference between GLX and EGL?

View 1 Replies View Related

General :: Difference Between C And Gcc

Oct 14, 2010

what is the difference between C and gcc...

View 12 Replies View Related

General :: Difference Between NIS And NIS+?

Feb 17, 2010

Last week in one of the Interview Dump Papers I read about NIS+. Anyone who can quick reference how the setting up NIS is different from NIS+.

View 1 Replies View Related

General :: Difference Between GUI And KDE?

Jul 12, 2011

what is the difference between a GUI and KDE..

View 5 Replies View Related

General :: Difference Between SSH And SCP?

Aug 4, 2009

I need to know the exact difference between SCP and SSH can somebody explain please as i am confused as both seem to do the same thing if so let me know what the difference is.

View 4 Replies View Related

General :: Difference Between Tty And Pts

Mar 16, 2010

What is the difference between /dev/tty and /dev/pts ??
I google a lot but didn't understand......

Thanks in advance

View 10 Replies View Related

General :: What Is The Difference Between |less And |more

Jan 29, 2010

What is the difference between |less and |more ?

View 7 Replies View Related

General :: What Is The Difference Between Two ISO's

Apr 12, 2010

I tried to download ISO file and saw ,Download ISO 1 and Download ISO 2 .What is the difference between two ISO's?

View 4 Replies View Related

General :: Difference Between NIS And LDAP?

Jan 10, 2009

What is the main difference between these two ? NIS and LDAP ?

View 1 Replies View Related

General :: Difference Between Linux And BSD

Mar 12, 2010

I want to know the differences between Linux and BSD .Which is efficient. Because they have some of the similarities with them.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved