GPSD script error

When running the GPSD script manually on the client to confirm it works, I am getting the following error:

$ /usr/lib/check_mk_agent/local/gpsd
/usr/bin/env: ‘bash\r’: No such file or directory

that looks like the script have some weird \r in the first line.

Totally remove that line and retype it.

1 Like

Thanks TheGreatDoc
I had a brain fart and you realigned my stars.

Based on what you said I resolved it by:
I install dos2unix “sudo apt-get -y install dos2unix
then ran “dos2unix gpsd

That removed all the wired “\r” from the script

Thanks for the help!

1 Like