Operating System - HP-UX
1833788 Members
2173 Online
110063 Solutions
New Discussion

Re: An issue about newalias

 
SOLVED
Go to solution
PJSC
Contributor

An issue about newalias

Dear All
After modify the /etc/mail/alaises file,I execute the newalias command,but system prompt me that Couldn't open //.elm/aliases.text for input!Could you please explain the root cause to it and how to deal with it?
7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: An issue about newalias

Is the string ".elm/aliases.text" in your aliases file?
PJSC
Contributor

Re: An issue about newalias

The string ".elm/aliases.text" does not exist in the aliases file.
Steven Schweda
Honored Contributor
Solution

Re: An issue about newalias

Compare "man newalias" with "man newaliases".

Never overlook the obvious.
Steven Schweda
Honored Contributor

Re: An issue about newalias

"man -k alias" can also be educational.
Dennis Handly
Acclaimed Contributor

Re: An issue about newalias

>Never overlook the obvious.

And of course I know how to spell it. ;-)
PJSC
Contributor

Re: An issue about newalias

Newaliases is the correct command to compile the aliases file.Thanks for all,particularly Steven Schweda.
Steven Schweda
Honored Contributor

Re: An issue about newalias

Perhaps the best plan is to remember how to
spell "sendmail -bi". (And then ensure that
your PATH leads to the right "sendmail".
Everything's complicated.)

Or create a suitably periodic "cron" job, so
that by the time you realize that there's a
problem, it'll already be fixed.