-bash:在意外令牌“换行”附近出现语法错误

时间:2021-10-22 00:22:26

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

要重置SolusVM的管理密码,我执行以下命令:

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.

这个问题的原因是什么?我以root用户的身份运行这个命令。

1 个解决方案

#1


55  

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

#1


55  

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