LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   problem with PyGTK (https://www.linuxquestions.org/questions/programming-9/problem-with-pygtk-302567/)

on_the_grid 03-16-2005 09:38 PM

problem with PyGTK
 
hi everyone,

i'm developing a grid portal using PyGTK and looks like i'm stuck at this place. can anybody tell me how to give input to a C program which has been executed by os.system() call in PyGTK.

my problem is somewhat similar to providing password via PyGTK window to 'su' (in linux 8.0, red hat, asking for superuser password), i'm not able to give input(here password) on PyGTK window after 'su' is executed, instead the prompt appears on the terminal. this is proving to be a grt hiderance in building the GUI.

we've tried input redirection, but it doesn't seem to work.

CAN ANYBODY HELP US OUT!!!!!!!!!!!!!!!!!!!!!!!

red_over_blue 03-16-2005 09:56 PM

I can't answer your question, but I can tell you that the #python channel on irc.freenode.net is a very knowledgable and friendly irc channel. I'm sure they can help you there if you don't find anything here.

jonaskoelker 03-17-2005 12:48 AM

if what you want is to have your application run a program as root, try `gksu someprogram';
also, have a look at http://www.lysator.liu.se/~astrand/popen5/

on_the_grid 03-17-2005 03:57 AM

thanx, but problem persists
 
thanx ppl, for the help.
i did check the websites but they didn't prove to be of much help.
i want to try this in other way, can someone suggest where the source code of login password prompt is stored.
i might get a hint for developing my GUI.

bye,
:)


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