View Full Version : Run .sh file from a web page
Is it possible to run a .sh file for example ./go.sh located on a server, from a web page.
thanks in advance
... from a web page.
what do you mean by that? initiate it from the client? Then you're in the wrong forum.
If you mean to initaite it by the server, when a web-page is requested or processed, then have a look at http://www.php.net/manual/nl/ref.exec.php
Well i have a .sh file situated on the server, which runs a series of scripts.
if i opened a terminal window and ran this script, it works fine.
but what i want to do is have a button on a web page which would run this script.
your button will need to be a submitbutton or an image with a link on, that posts to/requests a php-page. Inside that PHP page, you can then use exec() or so to run the .sh (check the link i posted for more info)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.