1

[SOLVED] bash scripting: sleep until SIGUSR1 is given

view story
linux-howto

http://crunchbang.org – Hello good people of the Crunchbang forums. I figured if anyone knew the answer to this, they'd be here. Is there a way to do this with bash?while :; do ... ... << wait for SIGUSR1 >> done | ...Some clarification on what I'm trying to do, in case someone knows a different/better solution to this problem:I'm trying to display mpd's currently playing song in a dzen2 bar. ncmpcpp can execute a command every time the song changes, so my idea was to setup a script called songchange.sh with the above construction and then make ncmpcpp execute & (HowTos)