Trying to pass a password: bash: syntax error near unexpected token `('

howdy,
so I'm make a plugin work for Nagios, and the commandline is:
/usr/lib/nagios/plugins/check_mssql -H MySQLServerName -u MySqlAccountName -p MyPassword(#XXXXX -d MyDatabaseName

it is barfing with:
bash: syntax error near unexpected token `('

Thoughts?
Do I have to wrap something around these freakish characters?

Peace,
Rich

Try single/double quotes around the password.

1 Like

ok, well at least the error changed.

thanks
:slight_smile:
R

---------- Post updated at 01:58 PM ---------- Previous update was at 01:45 PM ----------

disregard, I think I have the wrong acct name...

thanks mate