Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当您在 HPUX 系统上运行不带参数的 swlist 时,您将获得安装在该特定主机上的软件包。我想要相同的输出,而是列出安装在不同系统上的软件包。
这可能吗?
find $(perl -e 'print"@INC"') -name \*.pm
会让你大部分时间到达那里。
尝试使用 Net::SSH::Expect 在远程主机上执行 swlist 命令,获取输出并用它做你想做的事。这就是我会做的。