-bash: syntax error near unexpected token `newline'

Jonathan.V picture Jonathan.V · Feb 27, 2011 · Viewed 254.7k times · Source

To reset the admin password of SolusVM I am executing the following command:

php /usr/local/solusvm/scripts/pass.php --type=admin --comm=change --username=<ADMINUSERNAME>

When doing so, the following error message is printed:

-bash: syntax error near unexpected token `newline'

What is the reason for this problem? I am running the command as root.

Answer

Terence Simpson picture Terence Simpson · Feb 27, 2011

The characters '<', and '>', are to indicate a place-holder, you should remove them to read:

php /usr/local/solusvm/scripts/pass.php --type=admin --comm=change --username=ADMINUSERNAME