Talk:Bash Shell Script Examples

From Free Knowledge Base- The DUCK Project
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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