1. Direct execution document
nohup ./test.sh
Prompt appears:
Ignore the input and append the output to the "nohup.out"
And input the output result into the default file nohup. Out
2. Redirecting standard output to a file
nohup ./test.sh > a.txt
Prompt appears:
nohup: Ignore input redirection errors to the standard output
Output the result to the specified file a.txt
3. Redirecting standard error output to a file
nohup ./test.sh > a.txt 2>&1 &
No hint
Read More:
- [Solved] Linux Error: mipsel-linux-gcc: fatal error: no input files
- Linux Use dtc generate dtb Error: “FATAL ERROR: Unable to parse input tree“
- [Solved] Ubuntu 20.04 Error: curl: (23) Failure writing output to destination
- Ubuntu: pdserving deployment output log.txt Error
- Clang Error: error: cannot specify -o when generating multiple output files
- Docker Startup Error: standard_init_linux.go:211: exec user process caused “no such file or directory”
- [Solved] Bash: Syntax error: redirection unexpected
- [Solved] Linux — 9 — txt files are copied from windows to Linux and read error
- Linux Error: Failed to connect to ::1: No route to the host
- Error: error from slirp4netns while setting up port redirection: map[desc:bad request: add_hostfwd:
- Linux Nagios failed to log in to internal server error (Fixed)
- Linux: How to Fix undefined reference to `itoa’
- [Solved] Go use zoom to connect DM database and start reporting error in Linux
- How to Create Threads in Linux
- [Solved] xdd-plus-fetch qrcode error: Packet timed out,2-error: unknown flag
- Prompt “entering emergency mode. Exit the shell to continue” if the Linux operating system does not start normally
- [Solved] Xshelln Connect to Local VM linux Error: Could not connect to ‘XXX.168.122.1‘ (port 22): Connection failed
- How to Fix Ubuntu(Linux) mount error(22)
- Linux: How to Solve sudo operate Error
- Grep: How to Find All the Files Containing a String in Linux