[Tutor] First script project...

Israel Evans israel@lith.com
Thu, 5 Sep 2002 15:50:37 -0700


In order to start a bunch of my webdev programs, I did something along the
lines of:


###
#!python

import os

#start Webware's Webkit
os.chdir('c:/proj/webware/WebKit')
os.system('start AppServer.bat')

#start Apache http server
os.system('start C:\proj\apacheGroup\Apache\Apache.exe -w -f
"C:\proj\ApacheGroup\Apache\conf\httpd.conf" -d
"C:\proj\ApacheGroup\Apache\"')

#start the mySQL server and the Admin Tool
os.system('start c:/proj/mysql/bin/winmysqladmin.exe')
###


So really what I was doing here was making python pass strings to the system
in much the same way that you would start a program from the dos prompt or
the command program.

I just double click the script on my desktop and all these programs are
launched.


-----Original Message-----
From: Steve Lewis [mailto:steve@openiso.com]
Sent: Thursday, September 05, 2002 3:40 PM
To: tutor@python.org
Subject: [Tutor] First script project...


Hello,

This is my first post to tutor list and am just starting to learn Pyton. I
work in a very busy Helpdesk at the nations largest poultry producer. As
my first learning project I would like to automate the opening of the many
tools, apps, that we use.
We are standardized on W2K pro. I have a folder on my Desktop that
contains Shortcuts to all of my tools. I open the apps one at a time using
the shortcuts.
What I thought may be a good and useful Python learning project is
creating a script that will open all of my apps with the one script.
A gentle nudge in the correct direction would be great. I am using online
tutorials, papers and "The Quick Python BooK" to learn with. I am learning
alone so I hoped this list and all of the fine folks here would help fill
the void.
Thank you for any and all advice, pointers and gentle nudges.

Steve Lewis




_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor