Tag Archives: Problem Be Solved

Linux solves nohup: ignoring input and appending output to “nohup. Out” and nohup: ignoring input redirection error to standard output

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

Solutions to the problem of “collect2.exe: error: LD returned 1” exit “status when writing C + + with vscode

VSCode writes C++ code, and an error is reported at runtime:
Undefined reference to ` WinMain ‘
Exe: Error: LD returned 1 exit status

Solution 1:
Check the code to see if there are any keyword misspellings.
Solution 2:
Close the collect2. Exe.
Win+R, Enter MSinfo32, Enter;
Software environment –& GT; Running tasks;
Find the corresponding process and view the “process ID”;
Win+R, Enter CMD, Enter;
Input: TSkill process ID.
Solution 3:
Ctrl+S, save. To run again.