| UNIX/Linux Forum Archives · Rules and Guidelines · Disclaimer |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| dipukutty |
Posted: May 31 2005, 08:45 AM
|
|
Newbie ![]() Group: Members Posts: 1 Member No.: 1027 Joined: 31-May 05 |
Hello,
I want to block all the error stream (2) of a shell script and output only the stdout to the console. Example: In the command "find / -type f " I can block the error by "find / -type f 2>/dev/null". In this case only the output will be printed to the screen. Now If I have about 100 such lines with the posibility of errors then I don't want to individually dump the error stream of each command. I am looking for a method to block the error stream totally and only looking for a success output. I am using bash shell. Also I dont want to do "script.sh 2>/dev/null" Thanks in advance Regards |
![]() |
![]() ![]() ![]() |