Created
October 9, 2014 15:47
-
-
Save zimmerle/f4fd10f9b0485abb4872 to your computer and use it in GitHub Desktop.
Script used by ModSecurity buildbot to cleanup semaphores.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export me=`whoami` | |
echo "Username: $me" | |
echo "Listing..."; | |
ipcs -s | |
echo "Cleaning..."; | |
for i in `ipcs -s | grep $me | awk '{print $2}'`; do echo "Removing $i..."; ipcrm -s $i; done | |
echo "Listing again..."; | |
ipcs -s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment