added GPL notice also in the script file itself
use timeout if installed
example usage
solves echo new-line problem on some systems