I want to create a loop (blinking LED) while a command (in this case ping) is running. I am using the Raspberry Pi (Raspbian)
while [ `nmap -p 80 example.com` ] # something like this
do
echo "1">/sys/class/gpio/...
sleep 0.2
echo "0">/sys/class/gpio/...
sleep 0.2
done