The wall command in Slackware (at least in Slackware Current) is from util-linux-ng 2.18 and doesn't appear to support the -n option. Perhaps the gentoo one is from a different origin or version.
There's plenty of ways of doing this though, msmi10 has since modified his code example above to something that should work (though it'd be better with quotes) so I'm not sure why there was a need to resurrect this thread once again. Resurrecting long dead threads wastes everyone's time and is annoying when you don't spot it is a zombie. Reading back I was clearly overly harsh with him, I guess I wasn't in a very tolerant mood that day (Everyone has bad days). In the hopes of finally laying this one to rest, I'll just finish with another couple of possibilities. In recent bash versions, you can use the syntax Code:
wall <<< "Never argue with an idiot. They drag you down to their level and then beat you with experience." and command substitutions Code:
wall <<_EOF |
Quote:
:D :D |
Quote:
Having said that, basic 'wall' usage is that simple I'm surprised anyone could manage to have a problem using it. Anyway, old thread and really not worth labouring over. Thanks for posting dalek. |
Quote:
:D :D |
this works for me in slack 13 (i think i asked this question in another thread...)
Code:
wall {enter} |
On reflection, I think all the confusion over this is a BSD v SYSV issue.
Slackware appears to use the bsd syntax wall [file] Other distros (Gentoo being one from what dalek said above) use a SYSV syntax wall [message text] However, both versions will accept input on stdin. |
ah-ha.... i did a "man wall" and the manpage says:
Code:
WALL(1) BSD General Commands Manual WALL(1) gee... from looking at the manpage for talk, it looks like talk could be used as a basic IM on a local network... i'll have to play with it a bit |
Mine says it was written by Miquel van Smoorenburg and at the top says "Linux User's Manual". It appears that Gentoo uses something entirely different. Sort of wonder why they didn't name it something different too. Maybe gwall or something if it is only used on Gentoo.
:D :D |
Reading this thread i saw that the command first posted used ! so using " " won't work.
So use ' ' instead. Code:
echo 'Please log off now!!!' | wall Code:
wall <<< 'Please log off now!!!' Code:
wall <<< 'Who want'\''s lunch?' Code:
wall <<< "Who want"\'"s lunch?" |
Quote:
Landis. |
wall absolutly doesn't broadcast anything on Ubuntu 12.04, when using by root or by user.
Works only via ssh and doesn't support cyrillic. |
maybe that's why this topic is in the Slackware forum, not the Ubuntu one.
if you have questions/reports about the usage of wall on Ubuntu, open a topic on the dedicated forum, don't revive an old thread on random ones (if you had read all this one you could have seen this -the awkward reviving- already happened in this same thread). |
Drive a stake through this thread's heart.
|
1 Attachment(s)
Quote:
|
I'm glad this thread still exists.
I joined just to say I use your site all the time and finding threads even as old as 2003 and having users still replying to them in 2015 and beyond shouldn't upset people because they're 'old'. This information is still useful, even today. Isn't that the point of a forum like this? :p
ANYWAY, I found the information on wall <<< "text here" useful, so thanks! :D |
All times are GMT -5. The time now is 05:18 AM. |