Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Linux / Unix nohup command

Quick links

About nohup
Syntax
Examples
Related commands
Linux / Unix main page

About nohup

Runs a command even if the session is disconnected or the user logs out.

Syntax

nohup command [argument...]
nohup -p [-Fa] pid [pid...]
nohup -g [-Fa] gpid [gpid...]
nohup command [argument...]

-a Always changes the signal disposition of target processes. This option is valid only when specified with -p or -g.
-F Force. Grabs the target processes even if another process has control. This option is valid only when specified with -p or -g.
-g Operates on a list of process groups. This option is not valid with -p.
-p Operates on a list of processes. This option is not valid with -g.
pid A decimal process ID to be manipulated by nohup -p.
gpid A decimal process group ID to be manipulated by nohup
--help Displays help screen.
--version Output version information and exit.

Examples

nohup find -name '*' -size +1000k > log.txt

In the above example the above find command would be ran using nohup and continue to perform a find for any file bigger then 1000k regardless of connectivity logging everything found to the log.txt file.

Related commands

nice

Index

Category:
Linux / Unix

Companies:
Click here

Related Pages:

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope