When I run this command netstat -t 1 -i 2>&1 > $NETStat_OUT_FILE & inside a script , the output of netstat does not get redirected to the file.. Could any one find a solution for this ?
When I run this command netstat -t 1 -i 2>&1 > $NETStat_OUT_FILE & inside
Share
You need to redirect stdout first, then stderr.