Redirecting the outputs of nohup

Posted on 2006-03-29
Last Modified: 2013-12-27
I use the nohup command to run a process as follows:

nohup someprocess > output.txt &

When I run it, it will always display this message:

Sending output to nohup.out

And I have to press Enter again for the command to return.

How do I prevent nohup from writing to nohup.txt? I have already direct the outputs to output.txt, so creating an empty nohup.out file is meaningless to me.

Also, how do I prevent the message "Sending output to nohup.out" from appearing? When it appears, I have to press Enter for the command to return.

Question by:yongsing
    1 Comment
    LVL 38

    Accepted Solution

    type in:

    nohup someprocess > output.txt  2>&1&

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now