LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-14-2003, 11:14 PM   #1
james_cwy
Member
 
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
James
 
Old 12-15-2003, 12:09 AM   #2
Apocalypse
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!

http://php.net/system
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:29 AM.

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