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

getting bash PIDs does not work on MacOS #2

Open
k-wisniewski opened this issue Oct 21, 2019 · 0 comments
Open

getting bash PIDs does not work on MacOS #2

k-wisniewski opened this issue Oct 21, 2019 · 0 comments

Comments

@k-wisniewski
Copy link

I'm getting errors from synchronization.sh:
pgrep: illegal option -- b usage: pgrep [-Lfilnoqvx] [-d delim] [-F pidfile] [-G gid] [-P ppid] [-U uid] [-g pgrp] [-t tty] [-u euid] pattern ...

The workaround seems to be something like that:
active_shells=$(ps | grep bash | grep -v grep | awk '{print $1}')

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

Successfully merging a pull request may close this issue.

1 participant