added some other lines and even now i can send 10 commands to the player
in a second.
sys     0m0.110s was the highest value in these tests (and i cant hardly
hear a difference between 10 times with 3 steps or 5 with 2 - when
listening to music [TBPM: 120])

Code:
--------------------
    !/bin/bash
  
  #vars:
  port=9090
  server=192.168.199.11
  player=ca:fe:04:dj:an:go
  
  
  volume=$(printf "$player mixer volume ?\nexit\n" | nc $server $port | cut -d 
' ' -f 4)
  echo $volume
  
  for((i=0; i<10; i++))
  do echo "$player mixer volume $1"| nc $server $port
  done
  volume=$(printf "$player mixer volume ?\nexit\n" | nc $server $port | cut -d 
' ' -f 4)
  echo $volume
  
  
--------------------

> time  /usr/local/bin/volume_up.sh -3
> 100
> 70
> 
> real  0m0.480s
> user  0m0.100s
> sys   0m0.090s
>



Gruss
Jan
------------------------------------------------------------------------
DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516
View this thread: http://forums.slimdevices.com/showthread.php?t=105508

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to