Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update never stop running #9

Open
LeonardoGentile opened this issue Dec 15, 2015 · 3 comments
Open

update never stop running #9

LeonardoGentile opened this issue Dec 15, 2015 · 3 comments

Comments

@LeonardoGentile
Copy link

Hello, thanks for this.
I'm trying to update the lists using ./update however it seems I'm not able to.
I've tried several times and it seems the script take a huge amount of time around this block

for domain in $(cat $tmp); do
    result=`dig +short mx $domain`
    echo $result
    if [ -n "$result" ]; then
        echo $domain >> $confirmed
    fi
done

I'm not exactly sure what it is doing but it seems to me it is stuck in a cycle somehow

@willwhite
Copy link
Owner

./update exits cleanly for me on OSX in just under one minute. Can you add a set -x to the top of the script to see what it's doing? The code block you posted does a DNS lookup on each domain in the list so it's likely to take a bit of time.

@LeonardoGentile
Copy link
Author

@willwhite thanks!
I don't know why but this time it worked, I could see the output, it took around 10+ minutes, probably the last time I was behind a firewall or I've stopped the script before it ended, I don't know what else to think.

Anyway my connection is not usually slow so I don't know why it took me 10x times compared to your test..

@LeonardoGentile
Copy link
Author

I'm on OSX, iterm2, the standard (presintalled) sh is 3.2.53 but recently installed bash version 4.3.42.
Lunched the script with both sh and bash and the result is still the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants