I have a bash script (let's call it script.sh) which looks like this
while true; do if [ $someFile -eq = "1" ] then # make laptop LED blink here fi done
So when some file has some value (in my case, this file is changed when messages arrives), the script make a LED blink. As you can guess, this script never stops.
I usually call it when I need to know wether there is new mail and I can't open the laptop and check the screen.
Today I said to myself: let's put this in .bash_profile so the script gets fired up at login.
But when I try to login, alas the screen freezes.
How can I tell bash: execute this, but in a non blocking way?
Or: is there another solution to fire this at startup without freezing the machine?