Thanks for the reply, Chris.  Yes, my run-parts is also in /usr/bin and came
from crontabs-1.8-1.
I changed the script from:
"
#!/bin/bash
# run-parts - concept taken from Debian
# keep going when something fails
set +e
if [ $# -lt 1 ]; then
        echo "Usage: run-parts <dir>"
        exit 1
fi
if [ ! -d $1 ]; then
        echo "Not a directory: $1"
        exit 1
fi
# Ignore *~ and *, scripts
for i in $1/*[^~,] ; do
        [ -d $i ] && continue
        # Don't run *.{rpmsave,rpmorig,rpmnew,swp} scripts
        [ "${i%.rpmsave}" != "${i}" ] && continue
        [ "${i%.rpmorig}" != "${i}" ] && continue
        [ "${i%.rpmnew}" != "${i}" ] && continue
        [ "${i%.swp}" != "${i}" ] && continue
        if [ -x $i ]; then
                $i 2>&1 | awk -v "progname=$i" \
                              'progname {
                                   print progname ":\n"
                                   progname="";
                               }
                               { print; }'
        fi
done
exit 0
"

to
"

"
#!/bin/bash
# run-parts - concept taken from Debian
# keep going when something fails
set +e
if [ $# -lt 1 ]; then
        echo "Usage: run-parts <dir>"
        exit 1
fi
if [ ! -d $1 ]; then
        echo "Not a directory: $1"
        exit 1
fi
# Ignore *~ and *, scripts
for i in $1/*[^~,] ; do
        [ -d $i ] && continue
        # Don't run *.{rpmsave,rpmorig,rpmnew,swp} scripts
        [ "${i%.rpmsave}" != "${i}" ] && continue
        [ "${i%.rpmorig}" != "${i}" ] && continue
        [ "${i%.rpmnew}" != "${i}" ] && continue
        [ "${i%.swp}" != "${i}" ] && continue
        if [ -x $i ]; then
                $i 2>&1
        fi
done
exit 0
"

and now everything runs fine.

--Moby
-----Original Message-----
From: Chris Watt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 00:17 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: run-parts


At 03:49 PM 2/20/01 -0600, Moby wrote:
>run-parts still do not complete.  Does someone know where I can get a fresh
>copy of run-parts to re-install on my system?

Hmm. . .

$ which run-parts
/usr/bin/run-parts
$ rpm -qf /usr/bin/run-parts
crontabs-1.8-1

So if your system is like mine, you should be able to just rpm -e crontabs
and then rpm -Uvh the latest version of this package (presumably from
either the install cd or the updates for your version of Redhat).
You'll presumably also have to much around with /etc/crontab afterwards,
since that file seems to belong to the crontabs package as well.
--

Microsoft is not the answer!
"Microsoft?" is the question.
NO! (or Linux) is the answer.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to