2

I have to execute bash scripts over an http url. For example I have two serverS in the same network:

  • From server A i want to send this http url: 10.10.10.5/start.sh
  • And in Server B is a the script "start.sh" located and should be executed. Also php sctipts should be executed in the same way.

How can I do that? Which webserver should I use?

closed as unclear what you're asking by Tomasz, Jeff Schaller, jayhendren, mdpc, Romeo Ninov Jan 17 '18 at 7:52

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Are you trying to visit 10.10.10.5/start.sh via a browser on server A? I assume both servers are on the same network and can route to each other? If the answer to both is yes, then I'm not sure a tunnel is required; you could just call the url from server A directly. – RobotJohnny Jan 15 '18 at 16:14
  • If you do require a tunnel however, then you could do this from server A: ssh user@server_B.com -L 80:10.10.10.5:80 then run this from server A: curl http://localhost/start.sh – RobotJohnny Jan 15 '18 at 16:18
  • So.. serverB is hosting the script, but you want to execute it remotely via serverA? Or what? Your question is very unclear. – tjt263 Jan 16 '18 at 19:50