LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-08-2009, 12:22 AM   #1
ashes_sheldon
LQ Newbie
 
Registered: May 2009
Posts: 14

Rep: Reputation: 0
Web query to execute commands and output it to a web page !


hi fellas
I wanted to know if i can execute commands on linux console through a web page and redirect it back to my web page !

For example :
if i send a query "ls"
it should execute this command on my linux console and also redirect the list of the files to the web page from which i give the command !

please help me out ..

regards,
ashes_sheldon
 
Old 05-08-2009, 02:45 AM   #2
flopypl
LQ Newbie
 
Registered: Apr 2009
Location: Poland
Distribution: Slackware 12.1
Posts: 20

Rep: Reputation: 0
Use PHP. Then you will be able to send system commands and/or use Filesystem functions.

http://www.php.net/manual/en/ref.filesystem.php
http://pl2.php.net/manual/en/book.exec.php
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can ping web page from telnet, but can't open it in web browser a.ilic Linux - Networking 1 04-01-2008 10:29 AM
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 10:30 PM
How do I display real shell script output to web page. farmerjoe Programming 1 04-07-2005 01:03 PM
Execute bash commands from web page solomage Linux - Software 1 10-07-2004 10:54 AM
execute command from web page FNC Programming 5 03-06-2003 06:17 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration