Joined: 08 Nov 2008 Posts: 870 Location: GIRT-BY-SEA
Posted: Wed 21 Jul 2010, 08:55 Post_subject:
Re: Hmm standard command not working as expected
/sbin/iwconfig > /tmp/iwstuff.txt
That should have re-directed stdout to the file but it doesn't, it's empty.
If iwconfig happens to be an empty file then so will be iwstuff.txt
Standard output will be directed to that file using your syntax. But if the output of iwconfig consists of both standard output and standard error, then to redirect both these outputs to a common file,