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

job runs twice with different names #1

Open
thenickcox opened this issue Jul 24, 2015 · 1 comment
Open

job runs twice with different names #1

thenickcox opened this issue Jul 24, 2015 · 1 comment

Comments

@thenickcox
Copy link
Contributor

Currently, this generates two emails: one that says, "Greetings undefined," and one that says, "Greetings, #{name}". Why does it run twice, and why are the name values different?

@thenickcox
Copy link
Contributor Author

This is actually happening because calling ./eod runs in the background, and I started that process several times. The script should count the number of these processes and kill all if there's more than 1 before running:

nickcox@Nick-Cox
$ ps aux | grep 'node ./eod' | awk '{print $2}' | wc -l 
       5

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

1 participant