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

Windows System Administration: State of the Art on Python?

I am a long-time user of Perl who comes to you in peace and is
evaluating different scripting languages for use as a scripting
platform for system administrators on the Windows platform. Perl
already has many modules that allow sys admins and devolpers to do
lots of things with the Windows OS, and I'm wondering what the state
of the art is with Python and being able to control and administer a
windows environment. In this regard, how does Python stand up against
Perl?
Feb 26 '08 #1
3 4313
On Feb 26, 3:23 pm, Krishna Kirti Das <krishnaki...@gmail.comwrote:
I am a long-time user of Perl who comes to you in peace and is
evaluating different scripting languages for use as a scripting
platform for system administrators on the Windows platform. Perl
already has many modules that allow sys admins and devolpers to do
lots of things with the Windows OS, and I'm wondering what the state
of the art is with Python and being able to control and administer a
windows environment. In this regard, how does Python stand up against
Perl?
I can't comment on how it stacks up against Perl but I've pointed to
Tim Golden's collection several times. Lots of good stuff there.

http://tgolden.sc.sabren.com/python/index.html

....
Jay
Feb 26 '08 #2
On Feb 26, 3:23 pm, Krishna Kirti Das <krishnaki...@gmail.comwrote:
I am a long-time user of Perl who comes to you in peace and is
evaluating different scripting languages for use as a scripting
platform for system administrators on the Windows platform. Perl
already has many modules that allow sys admins and devolpers to do
lots of things with the Windows OS, and I'm wondering what the state
of the art is with Python and being able to control and administer a
windows environment. In this regard, how does Python stand up against
Perl?
There's the PyWin32 module if you want to do low-level stuff:

http://aspn.activestate.com/ASPN/doc...2/PyWin32.html
http://aspn.activestate.com/ASPN/doc...2_modules.html

Or you can "roll-your-own" (sort of) with the ctypes module:

http://docs.python.org/lib/module-ctypes.html

The PyWin32 basically exposes most (if not all) of the Windows API. I
think ctypes is usually used for COM black magic. There's also a
slightly higher level wrapper for WMI that you can use:

http://tgolden.sc.sabren.com/python/wmi.html
http://tgolden.sc.sabren.com/python/wmi_cookbook.html

Tell us what you want to do and we'll tell you if (and maybe how) you
can do it with Python.

Mike
Feb 26 '08 #3
I am a long-time user of Perl who comes to you in peace and is
evaluating different scripting languages for use as a scripting
platform for system administrators on the Windows platform. Perl
already has many modules that allow sys admins and devolpers to do
lots of things with the Windows OS, and I'm wondering what the state
of the art is with Python and being able to control and administer a
windows environment. In this regard, how does Python stand up against
Perl?
As everybody else, I cannot compare it to Perl, because I don't know
Perl good enough (or at all, for that matter). I found Python does
*very* well in Windows system administration, in many cases, better
than Visual Basic (IMO, and for the things I wanted to do). I've
mostly used the COM integration, as the things I wanted to manage
had COM (automation) interfaces.

Regards,
Martin
Feb 26 '08 #4

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

Similar topics

8
by: sebastien.hugues | last post by:
Hi I would like to retrieve the application data directory path of the logged user on windows XP. To achieve this goal i use the environment variable APPDATA. The logged user has this name:...
5
by: Isaac Raway | last post by:
Hello. I'm writing a Python program that connects to servers through telnetlib to execute a few commands. I've discovered that some of the servers that I have to connect to with this program run...
6
by: Don | last post by:
We have attempted several times to install Python 2.3 on a Windows 95 system. Each time, at the end of the install the following error is displayed: Error in installer script. Traceback (most...
16
by: Paul Rubin | last post by:
As what must be penance for something or other, I'm needing to release a Python app for use under Windows XP. Please be gentle with me since I'm a Un*x weenie and the only thing I've had much...
0
by: Guy | last post by:
Please email your resume if you are interested in this position in Harrisburg, PA. Candidate will consolidate state agency mission-critical systems that citizens of Pennsylvania depend on every...
3
by: Steven Fox | last post by:
============================================================ About DB2 Administration Tools Environment ============================================================ DB2 administration tools level:...
1
by: freesteel | last post by:
I have posted about this problem before. SInce then I found a much better article to help with embedding python in a multithreaded application: http://www.linuxjournal.com/article/3641 I...
0
by: Kofa | last post by:
Hi, I cannot create/drop databases from the command line, only from the GUI. Below is a detailed description of my installation and configuration attempts (sorry about the long post). I'm...
2
by: Steve Holden | last post by:
I'm giving a talk at LISA this year, and while the slides are ready I would like to go armed with as many examples of good system administration code as possible. If you have a favorite...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
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...
0
isladogs
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 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.