Change ps command to lsof for kick_user #20

Merged
merged 1 commit into from Jan 25, 2013

2 participants

@DexterTheDragon

The ps command used to find the sshd process to kick a user contains switches that don't work across all versions of ps. After looking at numerous options I settled on using lsof to find the pids. As far as I know lsof is available on all unix based platforms and provides a cleaner way to filter on user and command.

This will also fix issue #11.

@zolrath zolrath merged commit bae227a into zolrath:master Jan 25, 2013
@zolrath
Owner

Works great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment