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

Re: Bash Session



Hi Andrew,

I guess parsing /etc/passwd and /etc/shadow file and sending an email notification is a good one. But don't you think, that .bashrc concept and inclusion of tasks in it will be quite confusing and complicated for a beginner? I will have to explain about login and non-login shell, startup scripts which will make them more confusing. Don't you think?

Regards,

Kurian Thayil.

On Sun, Apr 26, 2009 at 6:02 AM, Andrew Reid <reidac@bellatlantic.net> wrote:
On Saturday 25 April 2009 12:57:08 Kurian Thayil wrote:
> Hi All,
>
> Planning to give a small demo on BASH scripting in a LUG community.
> Audience will be school teachers and basic home users and thus are
> beginners. Thinking on how to present simple and some example scripts that
> will make them more interesting and love command line. Need some
> suggestions.
>
> Its always difficult to think simple and easy. :-) So I've quite confused
> here on how and what to present. Any help?????

 I'd focus on a variety of contexts where scripting is
handy -- .bashrc and cron leap to mind.

 What can you do in your .bashrc file?  Set environment
variables, extend/modify your path, detect the local
architecture, and so forth.

 What's useful in cron?  Parse /etc/passwd or /etc/shadow
and send yourself an e-mail expiry notice, maybe.

 Automatic creation and testing of back-ups, maybe.

 Simple scripts, and in an environment (especially in .bashrc)
where other tools just aren't as good.

                               -- A.
--
Andrew Reid / reidac@bellatlantic.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: