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,

    链接地址: http://www.djcxy.com/p/97148.html

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

    下一篇: 需要在不同的Unix服务器上执行一个shell脚本