<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ipcs in awk-script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ipcs-in-awk-script/m-p/3672723#M102789</link>
    <description>Inesa,&lt;BR /&gt;&lt;BR /&gt;Yet another way to do this would be:&lt;BR /&gt;&lt;BR /&gt;# ipcs -smo | grep &lt;YOUR criteria=""&gt; | awk '{system("ipcrm -"$1" "$2)}'&lt;BR /&gt;&lt;BR /&gt;regards!&lt;/YOUR&gt;</description>
    <pubDate>Wed, 16 Nov 2005 18:50:30 GMT</pubDate>
    <dc:creator>Sandman!</dc:creator>
    <dc:date>2005-11-16T18:50:30Z</dc:date>
    <item>
      <title>ipcs in awk-script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ipcs-in-awk-script/m-p/3672720#M102786</link>
      <description>Please help me:&lt;BR /&gt; I want to find unused shared memory resources with "ipcs -smo" and remove it with "ipcrm", using awk-script from command line. If it needed, I can use temp.file.&lt;BR /&gt;&lt;BR /&gt;Please show me an example.&lt;BR /&gt;&lt;BR /&gt;Regards,Inesa</description>
      <pubDate>Wed, 16 Nov 2005 07:48:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ipcs-in-awk-script/m-p/3672720#M102786</guid>
      <dc:creator>Inesa Clinko</dc:creator>
      <dc:date>2005-11-16T07:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: ipcs in awk-script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ipcs-in-awk-script/m-p/3672721#M102787</link>
      <description>Hello Inesa,&lt;BR /&gt;&lt;BR /&gt;ipcs -smo | grep &lt;YOUR critera=""&gt;| &amp;gt; /tmp/temp.file&lt;BR /&gt;&lt;BR /&gt;while read a b c&lt;BR /&gt;do&lt;BR /&gt;  ipcrm "-$a $c" &lt;BR /&gt;done &amp;lt; /tmp/temp.file&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;&lt;/YOUR&gt;</description>
      <pubDate>Wed, 16 Nov 2005 08:19:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ipcs-in-awk-script/m-p/3672721#M102787</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-16T08:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: ipcs in awk-script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ipcs-in-awk-script/m-p/3672722#M102788</link>
      <description>Be care using this, NATTCH = 0 is a necessary but not necessarily sufficient condition for the removal of a shared memory identifier. It all depends upon how the software that uses the shared memory was written. For example, it is not unusual for an initialization program to run and setup a shared memory segment and then detach and exit. In that case, NATTCH = 0 but additional programs could run later expecting that shared memory identifier to be available and crash. This is a fairly common method for programs that might require long initializations otherwise.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 11:39:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ipcs-in-awk-script/m-p/3672722#M102788</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-11-16T11:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: ipcs in awk-script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ipcs-in-awk-script/m-p/3672723#M102789</link>
      <description>Inesa,&lt;BR /&gt;&lt;BR /&gt;Yet another way to do this would be:&lt;BR /&gt;&lt;BR /&gt;# ipcs -smo | grep &lt;YOUR criteria=""&gt; | awk '{system("ipcrm -"$1" "$2)}'&lt;BR /&gt;&lt;BR /&gt;regards!&lt;/YOUR&gt;</description>
      <pubDate>Wed, 16 Nov 2005 18:50:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ipcs-in-awk-script/m-p/3672723#M102789</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-11-16T18:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: ipcs in awk-script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ipcs-in-awk-script/m-p/3672724#M102790</link>
      <description>Use like this:&lt;BR /&gt;&lt;BR /&gt;ipcs -smo | awk '/^m|^s/ { print "ipcrm -"$1" "$2 }' | ksh&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;ipcs -smo | awk '/^m|^s/ { system ( "ipcrm -"$1" "$2); }'&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Thu, 17 Nov 2005 01:10:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ipcs-in-awk-script/m-p/3672724#M102790</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-17T01:10:59Z</dc:date>
    </item>
  </channel>
</rss>

