473,806 Members | 2,748 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1577
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**@slalomsk8 er.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**@slalomsk8 er.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
2337
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 submit the query. When the submit button is executed, it will display the selected column names and the query data. I am 80% finished but I have encountered a problem though. I do not know how to display the dynamic column names?! Could some please...
6
3697
by: Virginia Kirkendall | last post by:
Hi: I'm new with this & need help creating a XSL table that looks like the following: --------------------------------------------------------- | | | | | | |Title |CrossCut |Institution |START |END | | | | | | | | | |PI | | | | | | | | |
26
4505
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 System.EnterpriseServices;
3
4736
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 'System._ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'. This operation failed because the QueryInterface call on th COM component for the interface with IID '{65D5140C1-7436-11CE-8034-00aa006009FA}' failed with HRESULT:...
2
1997
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
1945
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 interface (there should be one) -- I pass AppWinStyle.NormalFocus. If I execute the exact same in a Windows form test app, the Shell works flawlessly. I've tried Diagnostics.Process approach rather than Shell but have the same results -- my app...
13
1759
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, the company wants to send me to asterisk developer training. I'm very excited about it except that the training starts in two weeks and PHP is a prerequisite for the course. I know C/C++ well so I'm hoping I can get up to speed quickly. Does...
0
5578
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 ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
5
5084
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 passes these as arguments to a configurable shell script or OS command. I would like for the output generated from the shell script/command shall be displayed in a new javascript window once the form is submitted. Optimally a user should not...
0
9599
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10624
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5684
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3853
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.