Bash script runs many copies of itself

Lorenzo Taylor lorenzo at taylor.homelinux.net
Tue May 10 05:27:17 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am linking to a Bash script that I have modified and am trying to use to catch
podcasts.  It also requires another helper script which I am attaching in case
the problem is there.  My version of the script can be found at:

ftp://taylor.homelinux.net/software/scripts/cdpodder

and both the Bash script and the Python script are in /usr/local/bin on my
system.

The problem is that this script somehow seems (at least on my system) tu run
at least 60 copies of itself, even if it is only called once.  I can find nothing
in the script that would make it run so many times.  Please help me find out if
I missed something and help me correct it.  This script does what I need it to
do, but it is very annoying to get so many emails from Cron telling me that it
couldn't move a file that one copy of the script already moved and having the
ends of my shows repeated over and over.

ps shows something like:

lorenzo at taylor:~$ ps aux |grep cdpodder
lorenzo  21279  0.0  0.2   2436  1132 ?        Ss   04:57   0:00 /bin/bash /usr/local/bin/cdpodder podcasts
lorenzo  22454  0.0  0.2   2436  1132 ?        Ss   04:58   0:00 /bin/bash /usr/local/bin/cdpodder podcasts
lorenzo  23491  0.0  0.2   2436  1128 ?        Ss   04:59   0:00 /bin/bash /usr/local/bin/cdpodder podcasts
lorenzo  28154  0.0  0.2   2436  1136 ?        S    05:04   0:00 /bin/bash /usr/local/bin/cdpodder podcasts
lorenzo  28496  0.0  0.2   2436  1136 ?        S    05:05   0:00 /bin/bash /usr/local/bin/cdpodder podcasts
lorenzo  28635  0.0  0.2   2436  1132 ?        S    05:05   0:00 /bin/bash /usr/local/bin/cdpodder podcasts
lorenzo at taylor:~$

And those are just the copies running right now.  It is running in a cron job
that only calls it once, but I get the same problem when I just run it straight
from the command line.

a~/.cdpodderrc file is also in this directory that is needed to feed the script
with the URLs it needs.  Be sure to rename cdpodderrc to .cdpodderrc and place it
in your home directory, as it is required by the script.  If needed, the
original script that I modified can be found at:

http://linc.homeunix.org:8080/scripts/bashpodder/user_contributed/huw_lynes/

Any help greatly appreciated.

Lorenzo
- -- 
"We decided that we should evaluate the Microsoft offerings first. Once we
realised what a powerful set of tools they were, it became self-evident this was
the right way to go down."

Microsoft: the right way to go down
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCgH51G9IpekrhBfIRAnFXAJ9+JoR5JSf5wM0DLFKoDi9ZLViFDgCgtgX9
oGkCgByrj5Db5EJ+kPVZm1A=
=LIEY
-----END PGP SIGNATURE-----




More information about the Speakup mailing list