Page 1 of 1

running .sh file thorough php

Posted: Mon Oct 29, 2012 9:51 am
by penguino
Hello I hope you could help me accomplish this:
I would like to make a page for personal use to run .sh files through links.
So the page will have links as shortcuts to sh files on my computer and run it without any prompts.

I have no clue in php but know html.

Thank you.

Re: running .sh file thorough php

Posted: Tue Oct 30, 2012 4:49 am
by jinijames
I guess i am not sure , any way check it out -

<?php

shell_execute('sh filename.sh');
?>

hire php developer | hire magento developer

Re: running .sh file thorough php

Posted: Tue Oct 30, 2012 9:51 am
by penguino
it works thank you :)

Re: running .sh file thorough php

Posted: Tue Oct 30, 2012 12:22 pm
by seandisanti
just throwing in my $.02 here, but you really probably don't want to do that.especially if that computer is going to be connected to the internet

Re: running .sh file thorough php

Posted: Wed Oct 31, 2012 1:23 am
by penguino
thank you for the tip, I thought about it.. I want to create a web-based local host shortcuts launcher. For now it doesn't run programs and processes and looking for how to do that. I saw it's been done in the Joly OS I think through html 5 and wondering how they managed that.. any ideas of how to achieve this?

Re: running .sh file thorough php

Posted: Thu Nov 01, 2012 9:12 am
by seandisanti
personally, i use logmein.com for my windows and macs, and teamviewer for my linux machines. both have web based remote control, and smart phone apps that i use on my phones and tablets to control any of my machines.