The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: barto@kdbarto.org (David Barto)
Subject: [TUHS] hello, world
Date: Wed, 28 Dec 2011 12:56:27 -0800	[thread overview]
Message-ID: <3840176A-25FF-45C2-81DA-D3047871752D@kdbarto.org> (raw)
In-Reply-To: <mailman.1.1325037601.24307.tuhs@minnie.tuhs.org>

A long time ago at the University that I graduated from. . .

Shell scripts had just added the ability to have functions in them, so I wrote a script to do some processing of files that I had, and then logged off to let it run in the background.

The shell script was named 'A'.

In the script was a function, named 'A'

When the script ran, instead of calling 'A' the function, it called 'A' the script, and you can see where this goes from here.

2 days later I received an email from the admin (thankfully a friend) who enclosed the 'ps -axl' output from the machine. It showed thousands of copies of my script running and a load that indicated that the machine was useless for almost everything.

With the admonishment: "Don't ever do this again."

I haven't.

	David


David Barto
barto at kdbarto.org
barto at ucsd.edu





       reply	other threads:[~2011-12-28 20:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1.1325037601.24307.tuhs@minnie.tuhs.org>
2011-12-28 20:56 ` David Barto [this message]
2011-12-25 13:10 Norman Wilson
2011-12-26 21:11 ` Warren Toomey
2011-12-26 21:15   ` Wilko Bulte
2011-12-26 21:20   ` Lyndon Nerenberg
2011-12-26 21:53     ` Armando Stettner
2011-12-26 22:13       ` Michael Davidson
2011-12-26 21:28   ` A. P. Garcia
2011-12-27  1:08     ` A. P. Garcia
2011-12-26 21:28   ` Michael Davidson
2011-12-28  0:13     ` Sven Mascheck
2011-12-28  0:20       ` Wilko Bulte
2011-12-28  7:34       ` Warren Toomey
2011-12-28 10:16     ` Ori Idan
2011-12-27  6:11   ` Adam
2012-01-04  3:37     ` Cyrille Lefevre
     [not found]   ` <Pine.BSI.4.64.1112271711290.603@dave.horsfall.org>
2011-12-27 18:01     ` Tim Newsham
2011-12-28  0:53   ` Corey Lindsly
2011-12-28 10:54     ` asbesto
2011-12-28 18:32       ` John Cowan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3840176A-25FF-45C2-81DA-D3047871752D@kdbarto.org \
    --to=barto@kdbarto.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).