How do I insert a string to command iwconfig key ...
Hello,
I have a file with my WEP key saved to wepkey.txt. I would like to insert the contents of wepkey.txt to the following command on the command line: iwconfig wlan0 essid <myessid> key <contents of wepkey.txt> I tried iwconfig wlan0 key < wepkey.txt, but I receive an error too few arguments cat < wepkey.txt displays the contents. What am I doing wrong? Thanks P.S. This is more of a learning exercise for me than something I plan to do permanently. |
Try
Code:
iwconfig wlan0 essid <myessid> key `cat wepkey.txt` |
All times are GMT -5. The time now is 05:12 PM. |