~/open.sh works with bash ~/open.sh, but not with ./open.sh. Make it run like a program. cat ~/open.shrun