-bash: syntax error near unexpected token `newline'

BashSyntaxNewlineToken

Bash Problem Overview


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.

Bash Solutions


Solution 1 - Bash

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJonathan.VView Question on Stackoverflow
Solution 1 - BashTerence SimpsonView Answer on Stackoverflow