Looks OK on a quick glance, if empgps is in one of the directories listed in the PATH statement.

Did you save it in Unix format (linefeeds), if you work from a Windows machine? It could be a question of the #!/bin/bash line (and all others) having an extra "carriage return" character before the "line feed" character that Unix uses to separate lines...

/Michael
_________________________
/Michael