Skip to content

Instantly share code, notes, and snippets.

@Dorvaryn
Created March 4, 2011 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 Dorvaryn/854848 to your computer and use it in GitHub Desktop.
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
#!/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