在PHP脚本中使用SSH别名中的条目


Use the entry in a SSH alias into a PHP script

我在bash_profile中有一个运行PHP脚本的sser的SSH别名。我需要在脚本中使用sser之后的条目。例如:

# sser example.com

如何在脚本中调用example.com的条目?

查看argv

您的变量将在$argv[1]