Skip to content

Instantly share code, notes, and snippets.

@zimmerle
Created October 9, 2014 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zimmerle/f4fd10f9b0485abb4872 to your computer and use it in GitHub Desktop.
Save zimmerle/f4fd10f9b0485abb4872 to your computer and use it in GitHub Desktop.
Script used by ModSecurity buildbot to cleanup semaphores.
#!/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