fork download
  1. channel_hopper() {
  2. local iface="${1}"
  3. while : ; do
  4. for i in $(seq 1 13); do
  5. sleep 1
  6. echo switch to channel "${i}"
  7. iw dev "${iface}" set channel "${i}"
  8. done
  9. done
  10. }
  11.  
  12. channel_hopper wlan0
  13.  
Time limit exceeded #stdin #stdout #stderr 5s 4336KB
stdin
Standard input is empty
stdout
switch to channel 1
switch to channel 2
switch to channel 3
switch to channel 4
switch to channel 5
switch to channel 6
switch to channel 7
switch to channel 8
switch to channel 9
switch to channel 10
stderr
./prog.sh: line 7: iw: command not found
./prog.sh: line 7: iw: command not found
./prog.sh: line 7: iw: command not found
./prog.sh: line 7: iw: command not found
./prog.sh: line 7: iw: command not found
./prog.sh: line 7: iw: command not found
./prog.sh: line 7: iw: command not found
./prog.sh: line 7: iw: command not found
./prog.sh: line 7: iw: command not found
./prog.sh: line 7: iw: command not found