<?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 mail command hangs with just one user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-command-hangs-with-just-one-user/m-p/6497674#M603145</link>
    <description>&lt;P&gt;Running HP-UX 11.31 on Itanium rx2660 box.&amp;nbsp; There is one user when they enter the "mail" command it just hangs until&amp;nbsp;they break out of it.&amp;nbsp; All other users work fine.&amp;nbsp; I have tried cleaning the mail (they said it was okay to do so) by&lt;/P&gt;&lt;P&gt;# cat /dev/null &amp;gt; /var/mail/username&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is nothing in the mail queue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried Google-Fu but the results I'm getting concern things like the sendmail service not starting on bootup, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how else to explain through search other than it just hangs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have suggestions on how to troubleshoot or correct this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jun 2014 13:52:02 GMT</pubDate>
    <dc:creator>Paul Maglinger</dc:creator>
    <dc:date>2014-06-03T13:52:02Z</dc:date>
    <item>
      <title>mail command hangs with just one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-command-hangs-with-just-one-user/m-p/6497674#M603145</link>
      <description>&lt;P&gt;Running HP-UX 11.31 on Itanium rx2660 box.&amp;nbsp; There is one user when they enter the "mail" command it just hangs until&amp;nbsp;they break out of it.&amp;nbsp; All other users work fine.&amp;nbsp; I have tried cleaning the mail (they said it was okay to do so) by&lt;/P&gt;&lt;P&gt;# cat /dev/null &amp;gt; /var/mail/username&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is nothing in the mail queue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried Google-Fu but the results I'm getting concern things like the sendmail service not starting on bootup, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how else to explain through search other than it just hangs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have suggestions on how to troubleshoot or correct this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2014 13:52:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-command-hangs-with-just-one-user/m-p/6497674#M603145</guid>
      <dc:creator>Paul Maglinger</dc:creator>
      <dc:date>2014-06-03T13:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: mail command hangs with just one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-command-hangs-with-just-one-user/m-p/6498216#M603146</link>
      <description />
      <pubDate>Tue, 03 Jun 2014 20:04:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-command-hangs-with-just-one-user/m-p/6498216#M603146</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2014-06-03T20:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: mail command hangs with just one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-command-hangs-with-just-one-user/m-p/6498280#M603147</link>
      <description>&lt;PRE&gt;&amp;gt;&amp;gt; Anyone have suggestions on how to troubleshoot or correct this
&amp;gt;&amp;gt; problem?
 
  &amp;gt; I know nothing, but if your standards are low enough, ...
I'm willing to give it a shot...&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; There is one user when they enter the "mail" command it just hangs until
&amp;gt;&amp;gt; they break out of it.

  &amp;gt; Which 'the "mail"' program is that, and is it the same one for the
other (luckier) users?

     &amp;gt; type mail
      &amp;gt;which mail
      &amp;gt;(or whatever works with your (unspecified) shell)

/usr/bin/mail&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;   All other users work fine.

  &amp;gt;&amp;gt; I'd expect that to mean a difference between the file(s) and/or
environment specific to that user, and those specific to another user. 
At what have you looked already?

Just what I mentioned.  Now that you brought it up, I'll see if there's anything in the .profile, etc. that stands out.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;   I have tried cleaning the mail (they said it was okay to do so) by
&amp;gt;&amp;gt; # cat /dev/null &amp;gt; /var/mail/username

  &amp;gt; Less destructive and more informative might have been things like,
say:

     &amp;gt; mv /var/mail/username /var/mail/username_
     &amp;gt; cp -p /var/mail/username_ /var/mail/username

&amp;gt; Thus not losing any useful info in /var/mail/username, and providing a
new file for the "mail" program.  (If a new, empty file is desired,
that's also easy to do without losing the original.)

&amp;gt;&amp;gt; [...] it just hangs [...]

  &amp;gt; I'd try using "trace", or "truss", or "tusc" (or whatever works on
HP-UX) to look at the system calls when a lucky user and an unlucky user
try to do the same thing.  A program like "top" might tell you if the
"mail" program is looping or stuck.

 &amp;gt;  Perhaps some other program has the user's /var/mail/xxx file locked
somehow.  "fuser" and/or "lsof" might reveal that.  (I haven't used a
UNIX system for mail for decades, so I know nothing, but perhaps another
instance (process) of "mail" run by the unlucky user could do this.)

Both good suggestions.  I'll take a look.&lt;BR /&gt;
&amp;gt;&amp;gt; There is nothing in the mail queue.

  &amp;gt; I wouldn't expect that (outgoing mail?) to matter.
&lt;BR /&gt;Just sayin'...&lt;BR /&gt;&lt;BR /&gt;Thanks Steve&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Jun 2014 20:58:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-command-hangs-with-just-one-user/m-p/6498280#M603147</guid>
      <dc:creator>Paul Maglinger</dc:creator>
      <dc:date>2014-06-03T20:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: mail command hangs with just one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-command-hangs-with-just-one-user/m-p/6498300#M603148</link>
      <description>Thanks Steve. Found the issue in the .profile. The user had a line:&lt;BR /&gt;MAIL=/usr/spool/mail/$USER&lt;BR /&gt;The mail directory didn't exist. Everything is working fine now.</description>
      <pubDate>Tue, 03 Jun 2014 21:12:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-command-hangs-with-just-one-user/m-p/6498300#M603148</guid>
      <dc:creator>Paul Maglinger</dc:creator>
      <dc:date>2014-06-03T21:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: mail command hangs with just one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-command-hangs-with-just-one-user/m-p/6500334#M603149</link>
      <description>&lt;P&gt;&amp;gt;There is one user when they enter the "mail" command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On HP-UX, nobody should use the obsolete mail command.&amp;nbsp; They instead should be using mailx(1).&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2014 08:06:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-command-hangs-with-just-one-user/m-p/6500334#M603149</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-06-05T08:06:34Z</dc:date>
    </item>
  </channel>
</rss>

