Operating System - HP-UX
1844843 Members
2882 Online
110233 Solutions
New Discussion

Problems with /usr/sbin/wall

 
SOLVED
Go to solution
Rachel Smith_1
Occasional Advisor

Problems with /usr/sbin/wall

I am running HPUX 11.00.

The wall command does not seem to work. All users have can accept messages (I have this set in /etc/profile) :

$ mesg
is y

But when I use wall, nothing is sent out. If I run (as root) in one terminal :

# /usr/sbin/wall "Hello!"
Hello!??

But when I look at my other terminal window, which is just my normal user, nothing is posted. What am I doing wrong?
9 REPLIES 9
Dave Hutton
Honored Contributor

Re: Problems with /usr/sbin/wall

I swear I've done it from one line, but it didn't work for me either.

I had to:
#wall
Hi there

and it worked. I think wall bypasses mesg anyway since its the same command issued when you shutdown the server and everyone sees it anyway reguardless of your mesg.

Dave
Jeff Schussele
Honored Contributor

Re: Problems with /usr/sbin/wall

Hi Rachel,

You have to ctrl-D to terminate & send the mesg.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Dave Hutton
Honored Contributor

Re: Problems with /usr/sbin/wall

Probably a better way out there but this worked also:
#echo "Hi there" | wall

Dave
James A. Donovan
Honored Contributor

Re: Problems with /usr/sbin/wall

From the man page....Without arguments, the wall command reads a message from standard input until end-of-file

Try..

# echo "Hello!" | wall
Remember, wherever you go, there you are...
A. Clay Stephenson
Acclaimed Contributor

Re: Problems with /usr/sbin/wall

Wall does not look at the command line for the message but rather stdin. You need to
do something like:
echo "Hello" | wall
or
wall < mytextfile
or a 'here docs' input, e.g.
wall <
If it ain't broke, I can fix that.
Rachel Smith_1
Occasional Advisor

Re: Problems with /usr/sbin/wall

I have tried both :

# echo "hello" | /usr/sbin/wall

and

# /usr/sbin/wall
hello
^d

The only difference I get is that hello is no longer echoed to my own screen with ?? appended to the end. So still no luck, any other suggestions???
Dave Hutton
Honored Contributor

Re: Problems with /usr/sbin/wall

I'm wrong when I said 'mesg y' doesn't matter. Looking at the man page it does.
Just wanted to clear that up.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Problems with /usr/sbin/wall

In that case, apply PHCO_28718.
If it ain't broke, I can fix that.
Rachel Smith_1
Occasional Advisor

Re: Problems with /usr/sbin/wall

Great! I installed the patch and everything is working great!!!

Thanks!