Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 585
  • Last Modified:

Redirecting the outputs of nohup

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.

1 Solution
type in:

nohup someprocess > output.txt  2>&1&

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now