473,238 Members | 1,780 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,238 software developers and data experts.

redirect or cover .bat log

Hello,

e.g I need run my my_scripts_setup.bat that contain:

python myscript_setup.py py2exe
Can I cover or redirect log of that process into my wx program?
I'am using Windows XP SP2, and Python 2.5.


Regards,
Vedran

Aug 22 '07 #1
5 1480
ve***********@v-programs.com schrieb:
Hello,

e.g I need run my my_scripts_setup.bat that contain:

python myscript_setup.py py2exe
Can I cover or redirect log of that process into my wx program?
I'am using Windows XP SP2, and Python 2.5.
Who's running the bat, and who's running the wx program?

Diez
Aug 22 '07 #2
On 22 kol, 09:19, "Diez B. Roggisch" <de...@nospam.web.dewrote:
vedrandeko...@v-programs.com schrieb:
Hello,
e.g I need run my my_scripts_setup.bat that contain:
python myscript_setup.py py2exe
Can I cover or redirect log of that process into my wx program?
I'am using Windows XP SP2, and Python 2.5.

Who's running the bat, and who's running the wx program?

Diez
Hi,

First I convert my main wx program to exe with my py2exe setup,then
under my main program (exe),
I must run that .bat file and redirect or cover that process.
Regards,
Vedran

Aug 22 '07 #3
ve***********@v-programs.com wrote:
On 22 kol, 09:19, "Diez B. Roggisch" <de...@nospam.web.dewrote:
>vedrandeko...@v-programs.com schrieb:
Hello,
e.g I need run my my_scripts_setup.bat that contain:
python myscript_setup.py py2exe
Can I cover or redirect log of that process into my wx program?
I'am using Windows XP SP2, and Python 2.5.

Who's running the bat, and who's running the wx program?

Diez

Hi,

First I convert my main wx program to exe with my py2exe setup,then
under my main program (exe),
I must run that .bat file and redirect or cover that process.
Still not very clear. But running a bat-file should be possible with the
subprocess module that also has facilities to grab stdout of the child
process.

Diez
Aug 22 '07 #4
On 22 kol, 10:52, "Diez B. Roggisch" <de...@nospam.web.dewrote:
vedrandeko...@v-programs.com wrote:
On 22 kol, 09:19, "Diez B. Roggisch" <de...@nospam.web.dewrote:
vedrandeko...@v-programs.com schrieb:
Hello,
e.g I need run my my_scripts_setup.bat that contain:
python myscript_setup.py py2exe
Can I cover or redirect log of that process into my wx program?
I'am using Windows XP SP2, and Python 2.5.
Who's running the bat, and who's running the wx program?
Diez
Hi,
First I convert my main wx program to exe with my py2exe setup,then
under my main program (exe),
I must run that .bat file and redirect or cover that process.

Still not very clear. But running a bat-file should be possible with the
subprocess module that also has facilities to grab stdout of the child
process.

Diez
Hi,

Can I execute one .bat file (without opening .bat window) just execute
commands
and log process redirect with sys.stdout or something in my wx window?

Is this clear enough?

Have you any other solutions for this?

Regards,
Vedran

Aug 22 '07 #5
ve***********@v-programs.com a écrit :
Can I execute one .bat file (without opening .bat window) just execute
commands
and log process redirect with sys.stdout or something in my wx window?

Is this clear enough?
Type "help cmd" in a Windows console, then grab ad-oc options (/C and /A
or /U seem good candidates).
To completly hide the console... I dont know. But i have a set of .bat
scripts for a large application integration, they are started via
"start" (see help start) and with the /min option to have console
minimized in the task bar. Minimized, not completly invisible.

[for the remaining, its just subprocess module usage - see examples in
doc - and reading from output]

A+

Laurent.
Aug 22 '07 #6

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

Similar topics

5
by: Jim in Arizona | last post by:
I have a site that uses frames. I made an aspx form with an asp:button control with Onclick=test. The test sub is: Sub Test(ByVal sender As Object, ByVal e As System.EventArgs) ...
9
by: Hugh Janus | last post by:
Hi all, Does anybody know if it is possible with VB.NET to capture and redirect traffic that flows through a particular port? i.e. the app either listens or watches port 1234 for outgoing...
0
by: Stuart Palmer | last post by:
Hi everyone, I'm trying to look for an asp equivilent of .htaccess that is used on apache servers but for use with asp. I am doing a website and moving lots of files into a single directory to...
27
by: Steve | last post by:
My apologies if this is a duplicate post, I can't find the earlier version of my question. I have a DIV that uses a CSS class defined at the thtop of an HTML page. The height and width of the...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
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...

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.