<?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: rm Broken Pipe in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-broken-pipe/m-p/5323215#M475628</link>
    <description>&lt;P&gt;What does "ls -l file.pid" say?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Broken pipe" error from a regular rm command with no input or output redirection makes no sense, even if the file to be deleted is a named pipe. Any "broken pipe" error should go to the process owning the pipe, not to the rm command. Something else must be causing the non-sensical error messages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At a guess, what does "ll /dev/null" say?&lt;/P&gt;&lt;P&gt;The correct output on HP-UX should be like:&lt;/P&gt;&lt;PRE&gt;$ ll /dev/null
crw-rw-rw-   1 bin        bin          3 0x000002 Sep  6 15:50 /dev/null&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If /dev/null has been removed, or replaced with a regular file, it should be reconstructed like this:&lt;/P&gt;&lt;PRE&gt;mv /dev/null /dev/null.broken
mknod /dev/null c 3 0x000002
chmod 666 /dev/null
chown bin:bin /dev/null&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2011 12:55:17 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2011-09-06T12:55:17Z</dc:date>
    <item>
      <title>rm Broken Pipe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-broken-pipe/m-p/5322119#M475616</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;I'm trying to start mysql but as it didn't come down cleanly it's not restarting with the following error&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class="Apple-style-span"&gt;mysqld daemon not started﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#000000"&gt;&lt;SPAN&gt;rm: file.pid not removed.&amp;nbsp; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Broke&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;n pipe&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#000000"&gt;&lt;SPAN&gt;Fatal error: Can't remove the pid file: file.pid&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Please remove it manually and start ./bin/mysqld_safe again&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I can't manually remove it either - any ideas ?&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;rm -rf file.pid&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;rm: file.pid not removed. &amp;nbsp;Broken pipe﻿&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Points awarded if they are still valid in this new community :)&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2011 11:37:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rm-broken-pipe/m-p/5322119#M475616</guid>
      <dc:creator>gstonian</dc:creator>
      <dc:date>2011-09-05T11:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: rm Broken Pipe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-broken-pipe/m-p/5322149#M475617</link>
      <description>&lt;P&gt;&amp;gt;I'm trying to start mysql but as it didn't come down cleanly it's not restarting with the following error&lt;BR /&gt;&amp;gt;rm: file.pid not removed.&amp;nbsp; Broken pipe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a named pipe?&amp;nbsp; If so, you need to find out who has it open.&amp;nbsp; You need to kill mysql.&lt;/P&gt;&lt;P&gt;Anything in the pipe, it probably has the PID to kill?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt;I can't manually remove it either - any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plenty:&lt;/P&gt;&lt;P&gt;1) Use lsof to find out who has it opened and kill it.&lt;/P&gt;&lt;P&gt;2) Reboot.&lt;/P&gt;&lt;P&gt;3) mv the pipe to another name.&lt;/P&gt;&lt;P&gt;4) Use /sbin/unlink to wave bye-bye to the file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt;Points awarded if they are still valid in this new community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are called kudos.&amp;nbsp; See the star on each reply.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2011 12:02:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rm-broken-pipe/m-p/5322149#M475617</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-05T12:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: rm Broken Pipe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-broken-pipe/m-p/5323215#M475628</link>
      <description>&lt;P&gt;What does "ls -l file.pid" say?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Broken pipe" error from a regular rm command with no input or output redirection makes no sense, even if the file to be deleted is a named pipe. Any "broken pipe" error should go to the process owning the pipe, not to the rm command. Something else must be causing the non-sensical error messages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At a guess, what does "ll /dev/null" say?&lt;/P&gt;&lt;P&gt;The correct output on HP-UX should be like:&lt;/P&gt;&lt;PRE&gt;$ ll /dev/null
crw-rw-rw-   1 bin        bin          3 0x000002 Sep  6 15:50 /dev/null&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If /dev/null has been removed, or replaced with a regular file, it should be reconstructed like this:&lt;/P&gt;&lt;PRE&gt;mv /dev/null /dev/null.broken
mknod /dev/null c 3 0x000002
chmod 666 /dev/null
chown bin:bin /dev/null&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2011 12:55:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rm-broken-pipe/m-p/5323215#M475628</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-09-06T12:55:17Z</dc:date>
    </item>
  </channel>
</rss>

