<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr; font-family: Verdana; color: rgb(0, 0, 0); font-size: 13px;">
<div style="">But... python scares the crap out of me! ;)<br>
<br>
More seriously, Perl's biggest drawback is CPAN. If you're a good developer AND a good admin, this isn't a serious problem, but if you are lacking on either side of that equation legacy issues can really start to pile up.<br>
<br>
I don't know how Ruby and Python compare in that regard. I suspect they might have similar issues, but if you are needing to step outside of the shell world, third party libraries are a major factor in choosing a new language. IMO, a bigger one than syntax
and learning curve.<br>
</div>
<div><br>
<div style="font-family: Tahoma; font-size: 13px;">
<div style="font-family: Tahoma; font-size: 13px;">
<div style="font-family: Tahoma; font-size: 13px;"><font style="font-family: Courier New;" color="#888888" size="1">-Josh More, CISSP, GIAC-GSLC, GIAC-GCIH, RHCE, NCLP<br>
<a href="mailto:morej@alliancetechnologies.net" target="_blank"><span class="il">morej@alliancetechnologies.net</span></a>
<br>
515-245-7701 </font>
<div style="font-family: Tahoma; font-size: 13px;"></div>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF21564"><font color="#000000" size="2" face="Tahoma"><b>From:</b> cialug-bounces@cialug.org [cialug-bounces@cialug.org] on behalf of Kenneth Younger [kyounger@gmail.com]<br>
<b>Sent:</b> Wednesday, September 29, 2010 10:28<br>
<b>To:</b> Central Iowa Linux Users Group<br>
<b>Subject:</b> Re: [Cialug] Tasks for learning shell scripting<br>
</font><br>
</div>
<div></div>
<div>Or if perl scares the crap out of you, python is a great system scripting language.<br>
<br>
<div class="gmail_quote">On Wed, Sep 29, 2010 at 10:23 AM, Don Ellis <span dir="ltr">
<<a href="mailto:don.ellis@gmail.com" target="_blank">don.ellis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
And, on the other hand, many times in shell scripting, I find that<br>
Perl is an easier tool to use. Often, when writing (or having written)<br>
a slightly more complicated script, I wish I had written it in Perl<br>
instead of bash/ksh.<br>
<br>
[Back to shell] When writing in shell, consider the differences<br>
between ksh and bash. I think I've heard that ksh has some constructs<br>
that work better for scripting (can't remember them offhand), but bash<br>
is easier for login. For the really basic scripting, bash or ksh can<br>
be good enough, especially if you teach the more advanced tools, such<br>
as functions and hashes. Once you get to this level, though, Perl<br>
starts getting simpler very quickly.<br>
<br>
Another thing, bash is often the default shell and ksh is an optional add-on.<br>
<br>
For a root login, sh is often used for the login shell because it is<br>
on a filesystem that is mounted first, and doesn't depend on later<br>
boot stages. However, for some systems, bash is used for root login,<br>
since it is also on an initial filesystem. If a script might be run<br>
before other filesystems are mounted, be sure the shell it runs in is<br>
present when it's needed.<br>
<br>
--Don Ellis<br>
<br>
<br>
On Wed, Sep 29, 2010 at 8:43 AM, Josh More<br>
<div>
<div></div>
<div class="h5"><<a href="mailto:MoreJ@alliancetechnologies.net" target="_blank">MoreJ@alliancetechnologies.net</a>> wrote:<br>
> For one-on-one tutoring, toss them one of the books mentioned earlier in the thread and then work with them on ways to automate their personal workflow. If they use Gnome, work with them to write nautilus scripts or custom session managers. Work your way
up to more complex things like custom startup scripts for specific "daemons" (like every time the machine turns on, launch an irc client as a screen session and connect it to the key channels).<br>
><br>
> Let them drive the direction.<br>
><br>
> Avoid the Posix focus. Let them get the job done as quickly as possible and let them shoot themselves in the foot as quickly as possible. The harder you make it to learn, the more resistant your mentee will be to learning. This is why I maintain that Perl
is the absolute best first language to learn. In the shell world, this would be Bash.<br>
><br>
><br>
> -Josh More, CISSP, GIAC-GSLC, GIAC-GCIH, RHCE, NCLP<br>
> <a href="mailto:morej@alliancetechnologies.net" target="_blank">morej@alliancetechnologies.net</a><br>
> 515-245-7701<br>
><br>
> ________________________________________<br>
> From: <a href="mailto:cialug-bounces@cialug.org" target="_blank">cialug-bounces@cialug.org</a> [<a href="mailto:cialug-bounces@cialug.org" target="_blank">cialug-bounces@cialug.org</a>] on behalf of Matthew Nuzum [<a href="mailto:newz@bearfruit.org" target="_blank">newz@bearfruit.org</a>]<br>
> Sent: Wednesday, September 29, 2010 08:35<br>
> To: Central Iowa Linux Users Group<br>
> Subject: Re: [Cialug] Tasks for learning shell scripting<br>
><br>
> On Wed, Sep 29, 2010 at 7:55 AM, Josh More<br>
> <<a href="mailto:MoreJ@alliancetechnologies.net" target="_blank">MoreJ@alliancetechnologies.net</a>> wrote:<br>
>> Who is the curriculum for?<br>
>><br>
>> Newbies in college, professionals transferring from Windows, employees at Canonical?<br>
>><br>
><br>
> I know someone who wants to learn about scripting. An experienced<br>
> computer user with Windows and Linux but just wants to go in a little<br>
> deeper.<br>
><br>
> My original intention was to teach using a posix only shell because<br>
> I've gotten myself into trouble when not using a modern Linux<br>
> distribution (Solaris). Also, Debian based distros have stopped using<br>
> bash as /bin/sh because it significantly slows down boot speed,<br>
> instead they use dash, a posix shell that loads much quicker. (but<br>
> they use bash for the interactive shell still)<br>
><br>
> Do you agree that my reasoning for using a posix shell is wise or is<br>
> it really negligible and I should take the easy road of bash? And on<br>
> the heals of that, if someone uses standard posix methods that skill<br>
> works perfectly in bash, right?<br>
><br>
><br>
> --<br>
> Matthew Nuzum<br>
> newz2000 on freenode, skype, linkedin, <a href="http://identi.ca" target="_blank">
identi.ca</a> and twitter<br>
><br>
> "An investment in knowledge pays the best interest." -Benjamin Franklin<br>
_______________________________________________<br>
Cialug mailing list<br>
<a href="mailto:Cialug@cialug.org" target="_blank">Cialug@cialug.org</a><br>
<a href="http://cialug.org/mailman/listinfo/cialug" target="_blank">http://cialug.org/mailman/listinfo/cialug</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<font color="#888888">Kenneth Younger III<br>
Founder, Sheer Focus Inc.<br>
Organizer, WordCamp Iowa<br>
e: <a href="mailto:kenny@sheerfocus.com" target="_blank">kenny@sheerfocus.com</a><br>
p: (515) 367-0001<br>
t: <a href="http://twitter.com/kenny" target="_blank">@kenny</a></font><br>
</div>
</div>
</div>
</body>
</html>