On Tue, 8 Jan 2008, Jeremy Katz wrote:

> On Tue, 2008-01-08 at 10:29 -0600, Mike McGrath wrote:
> > I know there's a lot of history around the syncmail script, does anyone
> > know why we don't just stick a & at the end and fork it?
> >
> > I'm refering to the ctl+c to skip notifications issue.
>
> >From what I remember, we tried this and it didn't work
>

/me wonders if this might work:

#!/bin/bash

message() {
    echo "Its not done yet.  Chill";
}

echo "I take a while to complete"
# sleep 5 would be replaced with the syncmail script
sleep 5 &
pid=$!
while ps $pid > /dev/null
do
    trap message INT
    sleep .2
done

_______________________________________________
Fedora-infrastructure-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list

Reply via email to