Tagged Questions
2
votes
2answers
370 views
How to change the output redirection of a running process?
I know how to redirect output and how to suppress them in bash. Now, suppose I accidentally forgot to append the output redirection part to the command (e.g. 2>&1 or > /tmp/mystdout) and my ...
1
vote
3answers
241 views
Redirecting without color [duplicate]
Possible Duplicate:
Removing control chars (including console codes / colours) from script output
How do I disable all color codes when redirecting to file?
I previously asked how to ...
1
vote
1answer
115 views
Redirecting output to file
I am looking forward to run commands and log their output in a temporary log file to be read later on by different processes.
So, for example: rc.d start ntpd > progress.txt
Returns:
::Daemon ...
2
votes
2answers
385 views
How to remove error messages when searching recursively for a string?
I use
find -type f -print0 | xargs -0 -n 10 grep -i searchstring
to search recursively for a string. But it also gives me error messages like "permission denied". How can I avoid such error messages ...
4
votes
2answers
545 views
the usage of < /dev/null & in the command line
I tried to run an example java program using the following command line. However, I do not know what is the trailing part < /dev/null & used for?
java -cp /home/weka.jar ...
15
votes
4answers
1k views
What happens to the output of a process that has been disowned and lost its terminal?
If I close the virtual terminal, where some process was started, does the output just go straight to /dev/null, or can it pollute memory somehow?
Can I anyhow grab the output to continue reading it at ...
5
votes
1answer
1k views
Why does redirection (>) not work sometimes but appending (>>) does?
While studying for the RHCE, I came across a situation where stdin redirection does not work in bash:
# file /tmp/users.txt
/tmp/users.txt: cannot open `/tmp/users.txt' (No such file or directory)
...