Hello,
I have a script that launches a sequence of other programs, some GUI,
some console. I'd like the console programs to launch in their own
console window, instead of all of them sharing the script's console.
How do I do that?
I'm on Windows, and currently I'm using os.spawnl(...) to launch the
programs.
Any help is appreciated.
Thanks,
Eli 4 4686
On Mar 14, 9:56 pm, egla...@gmail.com wrote:
Hello,
I have a script that launches a sequence of other programs, some GUI,
some console. I'd like the console programs to launch in their own
console window, instead of all of them sharing the script's console.
How do I do that?
Would the subprocess module help here? It's available in Python 2.4
onwards. I think it's supposed to be a one stop shop for all your
external application launching needs (Python group, please correct me
if I'm wrong here).
-Greg gr********@gmail.com a écrit :
On Mar 14, 9:56 pm, egla...@gmail.com wrote:
>Hello,
I have a script that launches a sequence of other programs, some GUI, some console. I'd like the console programs to launch in their own console window, instead of all of them sharing the script's console. How do I do that?
Would the subprocess module help here? It's available in Python 2.4
onwards. I think it's supposed to be a one stop shop for all your
external application launching needs (Python group, please correct me
if I'm wrong here).
-Greg
Try to use "start"
>>import os os.system("start cmd")
Open a new console with a cmd shell in it.
See start documentation here http://www.ss64.com/nt/start.html
Or typing help start on the command line.
Greg,
Thanks for the tip. I will check out subprocess.
Eli
On Mar 15, 5:12 am, Laurent Pointal <laurent.poin...@limsi.frwrote:
gregpin...@gmail.com a écrit :
On Mar 14, 9:56 pm, egla...@gmail.com wrote:
Hello,
I have a script that launches a sequence of other programs, some GUI,
some console. I'd like the console programs to launch in their own
console window, instead of all of them sharing the script's console.
How do I do that?
Would the subprocess module help here? It's available in Python 2.4
onwards. I think it's supposed to be a one stop shop for all your
external application launching needs (Python group, please correct me
if I'm wrong here).
-Greg
Try to use "start"
>import os os.system("start cmd")
Open a new console with a cmd shell in it.
See start documentation herehttp://www.ss64.com/nt/start.html
Or typing help start on the command line.
It looks like 'start' might be exactly what I need. Thanks.
Eli This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jason Callas |
last post by:
I am trying to figure out how to create a console window but cannot figure
out how to do this. I know it can be done since the C# and VB console
template projects do this but I see no code on how...
|
by: Ram |
last post by:
I have a console application that brings up a dialog if invoked with no
command line parameters. If I double click on my application a console window
is briefly displayed before the dialog appears...
|
by: Bumbrlik |
last post by:
When I spawn a console application from a another
application of mine using
_spawnl(_P_NOWAIT, my_program, ......),
it opens a new console window but when it is finished the
window is...
|
by: thinktwice |
last post by:
<package>
<job id="js">
<script language="JScript">
var WshNetwork = WScript.CreateObject("WScript.Network");
var oDrives = WshNetwork.EnumNetworkDrives();
var oPrinters =...
|
by: Scott |
last post by:
Hi everyone,
I have a c# console app that when run through an autorun.inf file, launches
a web page from the CD. It works just fine but I would like the console
window minimized on startup....
|
by: Stephany Young |
last post by:
When one uses the System.Diagnostics.Process.Start method to launch a common
or garden Console application, one can set the WindowStyle property of the
StartInfo object to ProcessWindowStyle.Hidden...
|
by: jbenezech |
last post by:
Hi all ,
I have a perl/java app running under Win32. The application consists of a perl service (Win32::Daemon) and of java classes. The perl service calls every xx hours java classes to perform...
|
by: =?Utf-8?B?VGVycmFuY2U=?= |
last post by:
Good Afternoon:
I have two questions I was hoping someone can help me with.
1. I've created a app that creates a xml file; the project was constructed
as a console window. I want to know is...
|
by: =?Utf-8?B?TFQgS2hvbw==?= |
last post by:
Hello everybody,
I had a window service program that invokes command scripts from bat/cmd
files using the C function "system", compiled using Visual Studio 2005. When
the scripts are invoked in...
|
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...
|
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: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |