Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-15-2003, 12:14 AM   #1
Registered: Nov 2003
Posts: 52

Rep: Reputation: 15
Running a terminal/prompt from PHP

This questions is related to linux + PHP. Did not really know where to put it, so put here. HOpe you do not mind.
Does anyone know how I can actually run a prompt/terminal from a PHP page in Redhat 9?
I would like to do this to run some shell scripts that in turn wil start up say eg tcpdump, p0f etc...

Normally for linux, right click on the desktop, new terminal then you get the prompt-
[root@lnx01 p0f]#
then you type eg tcpdump and it will run.

Assuming that PHP,Apache,Redhat is in computer A.
Using PHP in computer A to run the prompt
How can I do this?

If I am now physically at computer B-running eg windows but computer A is up, can I still use PHP accessed through computer B to run prompt/terminal and then type the program so it will run or run the script-by typing it to run the program?

Thanks a million
Old 12-15-2003, 01:09 AM   #2
LQ Newbie
Registered: Sep 2002
Location: North of the border (but which one?)
Distribution: RedHat Linux 8.0, Mac OS X 10.3/10.3 Server
Posts: 13

Rep: Reputation: 0
Here you go, right in the good ol' PHP documentation. I highly suggest using it!


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
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 06:54 PM
desktop shortcut for a terminal prompt mannoulla Linux - Software 9 06-07-2004 02:05 PM
How can I change the terminal prompt? ICO Slackware 4 02-15-2004 09:09 AM
no prompt in terminal xyfan Linux - Newbie 1 12-06-2003 12:25 AM
terminal with no prompt fletch88 Red Hat 0 11-17-2003 01:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:12 PM.

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