LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-06-2003, 03:55 PM   #1
Dirt
Member
 
Registered: Feb 2002
Location: St. Louis
Distribution: Red Hat 8.0
Posts: 30

Rep: Reputation: 15
execing a file from HTML?


Hi -
Im a newbie to linux and I want to start running a dedicated game server. Ive seen servers that people are able to start and stop from a webpage. How do they do that? Is there a way to make it so that I can set up a webpage with a link on it to start and stop my server (run the exec file). Or is there already pre made programs out there for this and where are they? Is there a command line would it be php or asp? Any help would be greatly appreciated.
 
Old 06-06-2003, 04:09 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well it's certainly not HTML. you can easily interact with the host server via a number of different languages, php, asp , cgi, xslt and others.... just a case of learning howto...
 
Old 06-06-2003, 04:12 PM   #3
Dirt
Member
 
Registered: Feb 2002
Location: St. Louis
Distribution: Red Hat 8.0
Posts: 30

Original Poster
Rep: Reputation: 15
I know quite a bit about PHP but havent found a command yet to do this unless I just overlooked it.
 
Old 06-06-2003, 04:13 PM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
It might be better to try a far more secure system, maybe webmin, instead of your own untested coding. Or just engage in a remote session with your server, via ssh maybe?
 
Old 06-06-2003, 10:59 PM   #5
Dirt
Member
 
Registered: Feb 2002
Location: St. Louis
Distribution: Red Hat 8.0
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by acid_kewpie
well it's certainly not HTML. you can easily interact with the host server via a number of different languages, php, asp , cgi, xslt and others.... just a case of learning howto...
Yeah bad choice of words, I should have said "execing a file from a WEBPAGE"...

Anyway I solved my problem...

exec ( <filename> )

in PHP works great!! Now the only problemn is gettting it to stop from the webpage

Thanks for everyones responses!
Dirt
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Html Form File Cottsay General 0 11-05-2005 01:30 PM
convert a html file in a graphics file (for Oo) shengchieh Linux - Software 2 09-09-2004 04:41 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 05:06 AM
HTML file permissions What is better? supertechmyers Linux - Security 5 11-12-2003 11:29 AM
html file doesn't work rsarson General 9 09-27-2003 09:02 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration