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.
如何在远程机器上的 perl 中设置环境变量?
我 ssh 进入远程机器,然后尝试通过 export 命令设置环境变量。但它没有设置环境变量
`ssh -2A root@x.x.x.x`; `export someEnv=no`;
ssh -2A root@x.x.x.x 'someEnv=no script.pl'
ssh -2A root@xxxx "export VAR=value && ./script.pl"