Hmm standard command not working as expected (SOLVED)
Posted: Wed 21 Jul 2010, 12:36
Using Puppy Lucid 213
OK I'm in the middle of a script and place the following.
That should have re-directed stdout to the file but it doesn't, it's empty.
Backticks does nothing, trying exec closes script or closes cli !
This doesn't work in either a script or from command line. Command line does echo the output though ?
What's wrong, have I missed something ?
Just tried ifconfig > test.txt and it created a file with the stdout in it ????
OK I'm in the middle of a script and place the following.
Code: Select all
/sbin/iwconfig > /tmp/iwstuff.txt
Backticks does nothing, trying exec closes script or closes cli !
This doesn't work in either a script or from command line. Command line does echo the output though ?
What's wrong, have I missed something ?
Just tried ifconfig > test.txt and it created a file with the stdout in it ????