Your Doorstep to the Temple of Oracle

Oracle EBS

nohup Command in Linux

Posted by appsdba11i on May 4, 2011

nohup

No Hang Up. Run a command immune to hangups, runs the given command with hangup
 signals ignored, so that the command can continue running in the background 
after you log out.

SYNTAX
      nohup Command [Arg]...

If standard output is a terminal, it and standard error are redirected so that they are appended
 to the file  `nohup.out';
 if that cannot be written to, they are appended to the file `$HOME/nohup.out'. 
If that cannot be written to, the command is not run.

If `nohup' creates either `nohup.out' or `$HOME/nohup.out', it creates it with no "group" or
 "other" access permissions. 
It does not change the permissions if the output file already existed.

`nohup' does not automatically put the command it runs in the background; you must do that 
explicitly, by ending the command line with an `&'. 


Example I want to remove directory and i need to exit that window immediatly and need 
that command to  be Run in Background

I have given a command to delte some folders in /ORADB & exited

nohup usage


AFter sometime i chcked the status of /ORADB.. directories are deleted even after exiting
 that terminal because we have used nohup command

nohup af

Chk for nohup.out for the activity that has been enterd with nohup command..

nohup.out can be found wherever we have given that command...


Hope this will helpful..



Advertisements

One Response to “nohup Command in Linux”

  1. I tend not to leave many remarks, however i did a few searching
    and wound up here nohup Command in Linux Your Doorstep
    to the Temple of Oracle. And I actually do have 2 questions for
    you if you don’t mind. Is it just me or does it give the impression like a few of these comments come across like coming from brain dead visitors? 😛 And, if you are posting on additional online social sites, I would like to follow anything new you have to post. Would you list of the complete urls of your community sites like your twitter feed, Facebook page or linkedin profile?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: