Created
March 4, 2011 15:47
-
-
Save Dorvaryn/854848 to your computer and use it in GitHub Desktop.
Un petit script pour cleaner les ipcs en cas de plantage d'une appli multitache
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
#!/bin/bash | |
# -*- coding: UTF8 -*- | |
reset | |
ipcs | awk '{print $2}' | perl -ne 'print if /^\d+$/' | while read id; do ipcrm -q $id; ipcrm -s $id; ipcrm -m $id; done | |
ipcs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment