Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Capture file descriptors while running an external program
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="jfigueiras, post: 2046555"] I have a problem with the module subprocess! As many other programs... I'm not sure what you mean by "non-standard file descriptors". The other program is free to open, read, write, etc any file he wants - are you trying to trap any file operation it may want to do? You *could* do such things -google for "code injection" and "API hooking"- but I doubt it's what you really want. -- Gabriel Genellina Softlab SRL Hi Gabriel! When I wrote "non-standard file descriptors", I meant the file descriptior which are pointed to files in the hardrive. What I would like to do is not to trap any file operation, but instead intercept that file operation, i.e. I would like the output of the external program to don't be writen in a file (its normal behavior), but instead be sent to any variable in my program. I know the name of the file where the external program will write the output.. I pass its name along the command line. Joao Figueiras ___________________________________________________________________ O SAPO já está livre de vírus com a Panda Software, fique você também! Clique em: [URL]http://antivirus.sapo.pt[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Capture file descriptors while running an external program
Top