Python是否能像Perl一样用于sysadmin工作? [英] Is Python as capable as Perl for sysadmin work?

查看:69
本文介绍了Python是否能像Perl一样用于sysadmin工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近向c.l.p.m发布了这类问题,但是

没有得到太多回应。我知道一点Perl和一个很小的Python,但是现在也没有掌握。


我看到Python是一种通用的OO编程语言,但是我的猜测

是Perl在该领域比Python更常见。


对于与sysadmin相关的任务,Python和Perl一样有用,或者

在经常与管理员进行交易时会不会笨拙

定期处理?


在后锅炉房的一些肮脏的工作期间某些时候

的Unix,你会发现自己说,geez,我希望我

用Perl开始 - Python只是没有削减它。 ?


谢谢,

--- J


-

- - 如果通过电子邮件回复,删除zees ---

解决方案



John M. Gabriele写道:

我最近向clpm发布了这类问题,但没有得到很多答复。我知道一点Perl和一个很小的Python,但是现在也没有掌握。

我看到Python是一种通用的OO编程语言,可以在某些系统中使用管理员,但我的猜测是,Perl在该领域仍然比Python更常见。

对于与sysadmin相关的任务,Python和Perl一样有用,或者
做它经常处理管理员定期处理时会变得笨拙吗?




我是Windows用户,不是Unix系统管理员,但是我'已经注意到了

Cameron Laird在Unix Review和Sys Admin杂志上撰写了几篇关于Python系统的文章

管理,例如
http://www.unixreview.com/documents/s=9083/sam0401d/ 。阅读他的

文章可以帮助您确定Python是否适合您的工作。


2005年2月7日星期一20:13:30 -0800,beliavsky写道:


[snip]

我是Windows用户,而不是Unix系统管理员,但是我注意到了Cameron Laird在Unix Review和Sys Admin杂志上撰写了几篇关于Python系统管理的文章,例如
http://www.unixreview.com/documents/s=9083/sam0401d/ 。阅读他的
文章可能会帮助您确定Python是否适合您的工作。




很棒的系列文章。谢谢你的链接。 :)


-

---如果通过电子邮件回复,请删除zees ---


< blockquote>文章< pa **************************** @ yahooz.com>,

John M. Gabriele< jo ************ @ yahooz.com>写道:


对于与sysadmin相关的任务,Python是否与Perl一样有用,或者在经常处理管理员处理的常规事务时它是否会变得笨拙基础?

在Unix的后锅炉房做一些肮脏的工作的某个时候,你会发现自己在说,geez,我希望我用这个来开始这个
Perl - Python只是没有削减它。 ?




不太可能。我是程序员,不是系统管理员,但是我的公司对于一个系统管理员来说太小了,所以我和其他两个程序员都当选了。

(For例如,今天我的大部分时间花在寻找内核上为Red Hat 7.3修补内存

补丁 - 长篇故事。)


无论如何。你有没有注意到shell脚本如何变得越来越长?

你是否注意到如何更难以弄清楚任何给定的b / b $ b脚本在做什么?嗯,这就是Python帮助你的地方相比,

Perl。对于简单易懂的任务,Python可能比Perl有点笨拙,但是你会发现Python比Perl好得多。

-

Aahz(aa**@pythoncraft.com)< *> http://www.pythoncraft.com/


编写Python的快乐应该是看到简短,简洁,可读的
类,用少量明确的代码表达很多动作 -

不是大量的琐碎的代码让读者感到沮丧。 --GRR


I recently posted this sort of question to the c.l.p.m but
didn''t get much of a response. I know a little Perl and a
little Python, but master neither at the moment.

I see that Python is a general purpose OO programming language
that finds use among some system administrators, but my guess
is that Perl is still more common in that area than Python.

For sysadmin-related tasks, is Python as useful as Perl, or
does it get clumsy when often dealing with the stuff admins
deal with on a regular basis?

At some point during some dingy job in the back boiler room
of Unix, would you find yourself saying, "geez, I''d wish I
started this with Perl -- Python just isn''t cutting it." ?

Thanks,
---J

--
--- if replying via email, remove zees ---

解决方案


John M. Gabriele wrote:

I recently posted this sort of question to the c.l.p.m but
didn''t get much of a response. I know a little Perl and a
little Python, but master neither at the moment.

I see that Python is a general purpose OO programming language
that finds use among some system administrators, but my guess
is that Perl is still more common in that area than Python.

For sysadmin-related tasks, is Python as useful as Perl, or
does it get clumsy when often dealing with the stuff admins
deal with on a regular basis?



I''m a Windows user, not a Unix sysadmin, but I''ve noticed that
Cameron Laird has written several articles on Python for system
administration in Unix Review and Sys Admin magazine, for example
http://www.unixreview.com/documents/s=9083/sam0401d/ . Reading his
articles may help you decide if Python is a good fit for your work.


On Mon, 07 Feb 2005 20:13:30 -0800, beliavsky wrote:


[snip]

I''m a Windows user, not a Unix sysadmin, but I''ve noticed that
Cameron Laird has written several articles on Python for system
administration in Unix Review and Sys Admin magazine, for example
http://www.unixreview.com/documents/s=9083/sam0401d/ . Reading his
articles may help you decide if Python is a good fit for your work.



Great series of articles. Thanks for the link. :)

--
--- if replying via email, remove zees ---


In article <pa****************************@yahooz.com>,
John M. Gabriele <jo************@yahooz.com> wrote:


For sysadmin-related tasks, is Python as useful as Perl, or does it get
clumsy when often dealing with the stuff admins deal with on a regular
basis?

At some point during some dingy job in the back boiler room of Unix,
would you find yourself saying, "geez, I''d wish I started this with
Perl -- Python just isn''t cutting it." ?



Not likely. I''m a programmer, not a sysadmin, but my company''s too
small for a sysadmin, so I and the other two programmers get elected.
(For example, today most of my time was spent hunting down kernel
patches for Red Hat 7.3 -- long story.)

Anyway. Have you ever noticed how shell scripts keep getting longer?
Ever notice how it gets harder to figure out what the heck any given
script''s doing? Well, that''s where Python helps you out compared to
Perl. Python can be a bit clumsier than Perl for dirt-simple tasks, but
you''ll find that Python scales much better than Perl.
--
Aahz (aa**@pythoncraft.com) <*> http://www.pythoncraft.com/

"The joy of coding Python should be in seeing short, concise, readable
classes that express a lot of action in a small amount of clear code --
not in reams of trivial code that bores the reader to death." --GvR


这篇关于Python是否能像Perl一样用于sysadmin工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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