Search found 8 matches

by penguino
Wed Oct 31, 2012 1:23 am
Forum: PHP coding => General
Topic: running .sh file thorough php
Replies: 5
Views: 1119

Re: running .sh file thorough php

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 a...
by penguino
Tue Oct 30, 2012 1:00 pm
Forum: PHP coding => General
Topic: run bash scripts with php
Replies: 5
Views: 1199

Re: run bash scripts with php

i got it to run the sh file and commands like echo runs ok, however background processes and programs can't be run and gives: "cannot open display" error..
by penguino
Tue Oct 30, 2012 9:51 am
Forum: PHP coding => General
Topic: running .sh file thorough php
Replies: 5
Views: 1119

Re: running .sh file thorough php

it works thank you :)
by penguino
Tue Oct 30, 2012 7:33 am
Forum: PHP coding => General
Topic: run bash scripts with php
Replies: 5
Views: 1199

Re: run bash scripts with php

Still trying unsuccessfully... anyone?
by penguino
Tue Oct 30, 2012 5:35 am
Forum: PHP coding => General
Topic: run bash scripts with php
Replies: 5
Views: 1199

Re: run bash scripts with php

thank you for the reply, however i'm not sure i got this..

do i need to copy the sh file to the /bin/bash folder for it to run through the php?
and why what you wrote has to run two php files?
by penguino
Tue Oct 30, 2012 4:11 am
Forum: PHP coding => General
Topic: run bash scripts with php
Replies: 5
Views: 1199

so this is what i made with no luck

An html file to run the php in a link

Code: Select all

<html>
<title></title>

<a href="2.php">run tmp.sh</a>

</html>
and the php file

Code: Select all

<?
exec('sh tmp.sh');
?>
and finally the sh file which just prints out a line in the terminal.

But nothing happens when i press on the link
by penguino
Tue Oct 30, 2012 3:54 am
Forum: PHP coding => General
Topic: run bash scripts with php
Replies: 5
Views: 1199

run bash scripts with php

hello, i would lilke to create a page with links that will run sh files (bash scripts), for personal use.
I have installed lampp on my linux machine and able to run php files on it.
I'm not familiar with php and had no luck so far with getting it done.

Thank you.
by penguino
Mon Oct 29, 2012 9:51 am
Forum: PHP coding => General
Topic: running .sh file thorough php
Replies: 5
Views: 1119

running .sh file thorough php

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.