<分区>
Possible Duplicate:
Why does an SSH remote command get fewer environment variables then when run manually?
如果我输入命令
ssh user@$IP ant
然后我收到
bash: ant: command not found
但是当我登录
ssh user@$IP
放
ant
然后工作正常。
Ant 安装在远程和本地机器上。 问题出在哪里?
我试图在谷歌中找到解决方案,但一无所获。
在此先感谢您的帮助!
--编辑--
我需要调用一些 bash 脚本,不想将所有路径更改为完整路径。