I think it's an PATH-issue on Mac: Running a short shell script from within Geany gives me (at my box)
`PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/MacGPG2/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/sbin`