系统管理员的编程语言 [英] Programming Language for Systems Administrator

查看:84
本文介绍了系统管理员的编程语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我是Windows系统管理员(计划在不久的将来迁移到Linux

管理),我偶尔会写几批

文件和Vbscripts自动完成我的任务。


现在我有兴趣学习一种编程语言,这将有助于我b $ b帮助我编写脚本或应用程序(在系统管理中

的观点)。


我在网上读到Python是开始创建者的最佳方式

,请告诉我你的建议并帮我选择合适的

编程语言来编写简单自动化的脚本

脚本到appliations对于我的工作流程。


我很难在C ++,Python,Perl之间进行选择。


在此先感谢

Kk

Hi All,

I am Windows Systems Administrator(planning to migrate to Linux
administration in near future), I have occassionally written few batch
files and Vbscripts to automate my tasks.

Now I have strong interest to learn a programming language that would
help me to write Scripts or Application ( In Systems Administrative
point of view) .

I have read on net that Python is the best way to start of for beginers
, Please let me your suggestions and help me out to chose to the right
programming language to write scripts ranging from simple automation
scripts to appliations for my workflow.

I am confused to chose between C++,Python,Perl.

Thanks in Advance

Kk

推荐答案

根据我的经验,Python比Perl更适合Windows。 Mark

Hammond'的Windows Python扩展程序是一个救星。你可以从 http://sourceforge.net下载这个软件包。
/ projects / pywin32 /


安装ActiveState Python包,其中包含Windows

扩展名。


我以Python为例,在
Active Directory和Exchange中自动化用户和邮箱管理。我还使用mxODBC模块与SQL Server进行交互。


我热烈推荐Win32上的Python编程。作者:Mark Hammond和

Andy Robinson(O''Reilly)。


Grig

In my experience, Python is more Windows-friendly than Perl. Mark
Hammond''s Python Extensions for Windows are a lifesaver. You can
download the package from http://sourceforge.net/projects/pywin32/ or
install the ActiveState Python package, which includes the Windows
extensions.

I use Python for example to automate user and mailbox management in
Active Directory and Exchange. I also use the mxODBC module to interact
with SQL Server.

I warmly recommend "Python Programming on Win32" by Mark Hammond and
Andy Robinson (O''Reilly).

Grig




Kanthi Kiran Narisetti写道:

Kanthi Kiran Narisetti wrote:
大家好,

我是Windows系统管理员(计划迁移到Linux
在不久的将来管理),我偶尔写了几个
批处理文件和Vbscripts来自动完成我的任务。

现在我有兴趣学习一种能够帮助我的编程语言编写脚本或应用程序(在系统管理中的角度来看)。

我在网上看到Python是开始
起点的最佳方式,请让我您的建议并帮助我选择
正确的编程语言编写脚本,从简单的自动化脚本到我的工作流程的应用程序。

我很困惑在C ++之间选择,Python,Perl。

在此先感谢

Kk
Hi All,

I am Windows Systems Administrator(planning to migrate to Linux
administration in near future), I have occassionally written few batch files and Vbscripts to automate my tasks.

Now I have strong interest to learn a programming language that would
help me to write Scripts or Application ( In Systems Administrative
point of view) .

I have read on net that Python is the best way to start of for beginers , Please let me your suggestions and help me out to chose to the right programming language to write scripts ranging from simple automation
scripts to appliations for my workflow.

I am confused to chose between C++,Python,Perl.

Thanks in Advance

Kk






" Kanthi Kiran Narisetti" <碲******** @ gmail.com>写在

新闻:11 ******************** @ o13g2000cwo.googlegrou ps.com:
"Kanthi Kiran Narisetti" <Te********@gmail.com> wrote in
news:11********************@o13g2000cwo.googlegrou ps.com:
我是Windows系统管理员(计划在不久的将来迁移到Linux管理),我偶尔会写几批
文件和Vbscripts来自动完成我的任务。

现在我非常有兴趣学习一种编程语言,它将帮助我编写脚本或应用程序(在系统管理中的角度来看)。
[...]
我我很困惑,可以在C ++,Python,Perl之间进行选择。
I am Windows Systems Administrator(planning to migrate to Linux
administration in near future), I have occassionally written few batch
files and Vbscripts to automate my tasks.

Now I have strong interest to learn a programming language that would
help me to write Scripts or Application ( In Systems Administrative
point of view) .
[...]
I am confused to chose between C++,Python,Perl.




我管理Windows和Linux(Slackware,Debian)盒子,我认为

你最好的选择是Python还是学习bash脚本。 C ++只是

不好 - 我将它用于一些大型应用程序,但对于sysadmin和

实用程序的东西,它需要花费10倍的工作才能完成任何工作

Python确实如此。


bash脚本仍然是大多数人似乎做这些事情的方式

linux(它是'相当于Windows / DOS下的批处理文件,但更多的是强大的b $ b,这就是我建议你看看它的原因 - 它是

仍然有用写一些你要发送给其他人的小东西

那些你不知道他们是否安装了python的人。当然这个对你来说没什么用,因为你需要在Windows上安装一个bash

解释器,所以它不再是跨平台的。


我建议你学习Python而不是Perl。 Perl和Python很接近

就功能而言(有一点点放弃,请不要

圣战),所以我不会说一个更好如果你已经知道它,那么比另一个好。但对于从头开始的人,我认为你会发现

而perl程序可能更小,python程序会更多

可读,可维护,更容易编写。


我使用bash脚本来处理小东西(只是简单的命令行在
序列中),C ++和Java用于一些需要它的东西(虽然我真的

无论何时我都可以使用Python和Python。 Python on

只要你使用函数

就像os.path.join(''dir'',''file''),Linux / Windows是惊人的跨平台而不是将''dir \\ file''硬编码到

你的代码中。并使用glob,shutil和os库为你完成所有的工作。



I admin both Windows and Linux (Slackware, Debian) boxes, and I think
your best choice is either Python or learning bash scripting. C++ is just
no good - I use it for some large applications, but for sysadmin and
utility stuff it just takes 10 times as much work to get anything done as
Python does.

bash scripting is still the way most people seem to do these things on
linux (it''s equivalent to batch files under Windows/DOS but far more
powerful), which is the reason I suggest you take a look at it - it''s
still useful for writing small things that you want to send to other
people where you don''t know if they have python installed. Of course this
is made less useful for you because you need to install a bash
interpreter on Windows so it''s no longer cross platform.

I suggest you learn Python instead of Perl. Perl and Python are close
enough in terms of functionality (with a little give and take, please no
holy wars), so I wouldn''t say one is Better than the other if you already
know it. But for someone starting from scratch I think you will find that
while the perl program may be smaller the python program will be far more
readable, maintainable, and easier to write.

I use bash scripting for small stuff (just simple command lines in
sequence), C++ and Java for a few things that require it (though I really
hate them both after using Python) and Python whenever I can. Python on
Linux/Windows is amazingly cross platform as long as you use functions
like os.path.join(''dir'',''file'') instead of hardcoding ''dir\\file'' into
your code. And use the glob, shutil, and os libraries to do all your
hard work for you.


这篇关于系统管理员的编程语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆