problem running in bash script?