[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Shell Scripting



"Rodolfo J. Paiz (E-mail)" wrote:

> I'm about to start learning to script on Linux. (Yes, I've ignored this
> facet of my education in the past.) However, I have no clue as to
> whether perl or shell-scripts (or something else) is the best first
> choice for general-purpose scripting.
> 
> What would you recommend? My purpose is, I imagine, the most pedestrian
> one: to automate server tasks my way, just as Jeff did with his
> ntpupdate script recently.

No, that was Cobalt's script, it even had a copyright notice for Cobalt
in it.  All I did was put it into /etc/cron.hourly (and added a rather
misleading header, unfortunately <frown>).

> I tend to prefer tcsh for my shell, but am
> acutely aware that many/most people stick to bash (so much so that my
> root identities on all servers still use bash just in case...)

I've no knowledge at all of tcsh, so I don't know how powerful it's
scripting language is.

Nevertheless, I think it's not bad advice to learn Perl <smile>.  There
are so many good Perl scripts out there, that you can use and/or modify.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA  92517
voice: (909) 787-8589  *  fax: (909) 782-0205