LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-07-2005, 08:56 AM   #1
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
Is Python as capable as Perl for system administration?


I like Python. It seems nice and clean (syntax-wise) to me. I'd like to get more into using it for serious system admin stuff. I notice that many folks use Perl for that.

When the rubber meets the road, is Python as capable as Perl for system administration?
 
Old 02-07-2005, 09:23 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Short answer: Yes
 
Old 02-07-2005, 09:28 AM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
It is not the language that is capable to do system administration, it is the man
 
Old 02-07-2005, 09:37 AM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Keefaz has a great point.

I personally prefer Python to Perl only because I'm more comfortable with it and I like the syntax layout better. It is certainly a decision to be made personally, and with anyone who has to deal with your code.
 
Old 02-07-2005, 10:05 AM   #5
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Original Poster
Rep: Reputation: 32
Y'know, nearly everyone I talk to prefers Python (due to its simplicity mainly). Given that, I'm still curious why Perl enjoys such popular use. I mean, it's used everywhere, and the docs are extremely good (I'm thinking of the Oreilly Perl books, which are really shining examples of great technical writing).

keefaz -- careful; there's female sysadmins out there too.
 
Old 02-07-2005, 10:21 AM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I would think Perl is liked because of its Unix syntax, I mean most Perl commands name
are the same name as Unix ones (mkdir, find, grep, reg exps, tr..) also as Perl is good for
manipulating text, it can be used to parse config files, logs, process outputs and make
reports.
 
Old 02-07-2005, 11:15 AM   #7
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Original Poster
Rep: Reputation: 32
keefaz, I see your point. I wonder, (since I don't have too much experience with it) does Perl provide more or easier access to your Unix system under the hood than Python?
 
Old 02-07-2005, 01:08 PM   #8
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
Python is a great language and MUCH MUCH simpler to learn and troubleshoot if needed. Perl remains popular because not every admin got their job 5 years ago. Like all languages, they both can do most anything, but are better suited to certain items. Heck, I see admins still using Common Lisp because it's what they know or its suited to their purpose. I like Perl, but most of my simple programming is Python or Ruby these days.

If you like trends, try out Ruby. It's the "next" big thing. I personally think it's easier than Python and you don't have to have "perfect" syntax to make it work.
 
Old 02-07-2005, 01:23 PM   #9
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Original Poster
Rep: Reputation: 32
> If you like trends, try out Ruby.

Thanks for the reply ghight. No, I don't like trends. I like simplicity and minimalism (and good docs :). Trouble is, I also want to find a job doing admin work. I know I'll need to know *some* Perl, but I'd like to be able to look into the crystal ball and learn if Python can deal with the sticky issues when things get complicated and ugly.
 
Old 02-07-2005, 01:51 PM   #10
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
You would be good to learn a little of as much as possible. A good quote for an admin in need of a job is "I know a little about everything and everything about very little".

If you are not currently a sysadmin, I'd say you should spend a bulk of your time with Perl. Python is very popular but not so much as a scripting backend yet (although it's perfectly capable of doing so).

Just my 2 cents.

G
 
Old 02-07-2005, 02:11 PM   #11
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Original Poster
Rep: Reputation: 32
Thanks ghight.

> You would be good to learn a little of as much as possible.

Heh. Story of my life. Trouble with that is, it makes you an unemployable renaissance man (at least in my experience). Hopefully I'm wrong about that though.

Thanks for the advice.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! System Administration! Help Please! greenjm90 Linux - Newbie 5 07-23-2005 05:40 AM
"Essential System Administration" or "UNIX System Administration Handbook"? TGWDNGHN Linux - Newbie 3 07-03-2005 08:27 PM
System Administration in Gnome jtmillard Linux - Software 7 06-16-2005 08:31 PM
System control/administration memer Linux - Software 1 05-18-2005 01:14 PM
Is Red Hat Linux a real operating system, capable of commercial use? thatgentleman Linux - Distributions 7 03-25-2002 12:48 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration