简体   繁体   English

从另一台Unix机器上调用Shell脚本

[英]Call shell script from another unix machine

I have a new requirement, here I have a DEV and ITG Unix machines. 我有一个新的要求,这里有DEV和ITG Unix机器。 Now I need to call DEV machine shell script from ITG machine shell script. 现在,我需要从ITG机器外壳脚本中调用DEV机器外壳脚本。

So can anyone tell me how I can do it. 所以谁能告诉我我该怎么做。

Thanks Sai 谢赛

You can do it by doing a ssh 您可以通过执行ssh来完成

  SSH_RUN="ssh $USER@$HOST"  // declared a ssh variable to ssh

  $SSH_RUN "bash myscript.sh" // use the varaible to call your script on the dev machine

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM