Talk:Bash Shell Script Examples

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search

example of loop

#!/bin/bash
export DISPLAY=:0.0
w=$(xdotool search --class Angeldust.x86_64)

#!/bin/bash
for (( c=1; c<=20; c++ ))
do
  echo "Task Number $c"

  xdotool key --clearmodifiers --delay 200 --window $w Return
#  sleep 1s
  xdotool key --clearmodifiers --delay 1000 --window $w Up
#  sleep 1s

done