Answer the question
In order to leave comments, you need to log in
Can a bash script be causing the server to hang?
Hello.
I have the following bash script
#!/bin/bash
while [ 1 ]; do
xdotool windowactivate 62914742 sleep 1 windowfocus 62914742 sleep 1
xdotool mousemove 632 142 sleep 2 click 1 sleep 2 type "my text"
echo "-> done"
sleep 300
done
Answer the question
In order to leave comments, you need to log in
Without this script does not hang?
Is there anything interesting in the logs at this time?
It is really more logical to hang up the task every 5 minutes on kroner, but the userspace process should not hang up the machine in any case.
Save this code to script.sh file:
xdotool windowactivate 62914742 sleep 1 windowfocus 62914742 sleep 1
xdotool mousemove 632 142 sleep 2 click 1 sleep 2 type "my text"
echo "-> done"
*/5 * * * * /path/to/script.sh
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question