473,325 Members | 2,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Help needed for to build a CGI shell interface.

I don't get it with the popen (popen3 or subprocess).

1. How do I establish my pipes?

2. And how do I interact with the pipes (interactive CGI-page)?

Thanks, Dominik
Jul 18 '05 #1
4 1559
Slalomsk8er wrote:
I don't get it with the popen (popen3 or subprocess).

1. How do I establish my pipes?

2. And how do I interact with the pipes (interactive CGI-page)?


There are plenty of python + http frameworks out there - from simple
cgi-like ones like mod_python to full fledged app servers like zope. As
usual, google is your friend. No need to dig into the things you mentioned
above - at least not for what you want to do right now.
--
Regards,

Diez B. Roggisch
Jul 18 '05 #2
Diez B. Roggisch wrote:
Slalomsk8er wrote:

I don't get it with the popen (popen3 or subprocess).

1. How do I establish my pipes?

2. And how do I interact with the pipes (interactive CGI-page)?

There are plenty of python + http frameworks out there - from simple
cgi-like ones like mod_python to full fledged app servers like zope. As
usual, google is your friend. No need to dig into the things you mentioned
above - at least not for what you want to do right now.

What do I want to do? I am building an admintool (deamon and client) and
for this I need to script a interface to the shell, with the console
ansi escape sequences, whitch is fully transparent for the user.

I do not want Zope or Plone. I want Python and XUL.

Google is my friend but I did not found the answers I need to understand
the concepts behind the parts (python internals and shell/terminal things).

Please point me to the info, I can not find it (tryed for some days) or
post code so I can reverse engenieer ;) and adapt it.

Thanks, Dominik
Jul 18 '05 #3
Slalomsk8er <ne**@slalomsk8er.ch> wrote:

What do I want to do? I am building an admintool (deamon and client) and
for this I need to script a interface to the shell, with the console
ansi escape sequences, whitch is fully transparent for the user.


Do you honestly plan to expose a command shell via CGI? Can you think of a
better way to allow hackers to wreak havoc on your system?
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 18 '05 #4

Tim Roberts wrote:
Slalomsk8er <ne**@slalomsk8er.ch> wrote:

What do I want to do? I am building an admintool (deamon and client) andfor this I need to script a interface to the shell, with the console ansi escape sequences, whitch is fully transparent for the user.
Do you honestly plan to expose a command shell via CGI? Can you

think of a better way to allow hackers to wreak havoc on your system?
CGI is not a very good way of doing this - although I did implement a
*very* basic version that is on the Python Cookbook. The python
interpreter closes after executing a CGI... You could setup a long
running process on teh server that communicates with the CGI every time
it opens. I don't use Lunix systems myself... so I don't know how to
tell the client shell to communicate via the CGI

Regards,
Fuzzy
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.


Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: James Perry | last post by:
Hi, I have been trying to build an custom report interface for a charity manangement system; which is part of my dissertation. This interface will allow the chairty to input a SQL query and...
6
by: Virginia Kirkendall | last post by:
Hi: I'm new with this & need help creating a XSL table that looks like the following: --------------------------------------------------------- | | | | | |...
26
by: Lasse Edsvik | last post by:
Hello I'm trying to build a simple COM+ app in vs.net using C# and i cant register it in component manager..... what more is needed than this: using System; using...
3
by: DM | last post by:
newbie trying to set up a Database and keep getting the same result. ERROR An error occured while retrieving the information from the database: Unable to cast COM object of type...
2
by: newbievn | last post by:
The code below is from Microsoft MSDN example for DirectShow: CODE #include <dshow.h> void main(void) { IGraphBuilder *pGraph = NULL; IMediaControl *pControl = NULL;
3
by: Rob R. Ainscough | last post by:
I have a Windows Service with a timer that use the .NET 2.0 Shell command. The Shell command returns a non-zero number but Task Manager shows the shelled exe running but there is NO visible...
13
by: madwhit | last post by:
Hello, I have about 7 years programming experience but none of it with PHP. I got a project to build an IVR with Asterisk and we used a consultant to help. Now that the project is in production,...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
5
by: inetquestion | last post by:
I am looking for a web interface for shell commands or shell scripts. Does anyone know of any exexisting php scripts which would solve this requirement? PHP form accepts input from a user, then...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.