Need to execute a shell script in different unix servers

This question already has an answer here:

  • How to use SSH to run a shell script on a remote machine? 11 answers

  • I would suggest 4 different ways of doing it,

    1. The easiest way : configure space cleanup script in crontab

    2. Call script in remote servers from one server via ssh . see this link how-to-use-ssh-to-run-a-shell-script-on-a-remote-machine

    3. Run a script which keep on looking for a status/trigger file ( a dummy file) in some location, push the dummy file (ftp,scp etc) from one servers to that specific location whenever required.

    4. Have a http server-client set up , may be a cgi script , which can be triggered via http request.

    There could be many other ways. I have tried all above and all will work,


    上一篇: 在Bash中ssh和运行多个命令最干净的方法是什么?

    下一篇: 需要在不同的Unix365体育投注那个是真的_bet 365-体育投注官网下载_365体育在线投注点球掷中率排行上执行一个shell脚本