You are not logged in.
hi,
I have this simple script:
==============================
#!/bin/bash
number=""
while [[ ! $number =~ ^[0-9]+$ ]]; do
echo "Enter a number:"
read number
done
===============================
that causes one of my CPUs to run up to 100% when I click on it with the mouse (left click).
It does not allow a number to be entered, it simply does nothing nothing.
But I notice that one of my CPU's runs up to 100%, and I have to kill the process for the script.
When I right click on the script, and select "Run in terminal" ( I have configured a
custom action called "Run in terminal" that has this command : "xfce4-terminal -e %f --hold" )
it runs in a terminal correctly, and the CPU does not run up to 100%.
questions:
1) Is there anyway for Thunar to know when a script needs to be run in a terminal by mouse right
clicking, and not with a left click? Nautilus always asks you if you want to "run in terminal" or just "run".
2) Why does the CPU run up to 100% when the script is called by a left mouse click?
Thanks
Offline
[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 511.11 KiB (Peak: 529.72 KiB) ]