(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
06-03-24 02:34 AM
0 users currently in Hardware / Software.
Acmlm's Board - I3 Archive - Hardware / Software - How do I pop up a system message in Linux from SSH?
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
Nebetsu
Posts: 5/356
Thanks! ^^
FreeDOS +
Posts: 25/1312
as root: DISPLAY=0:1 xmessage "Here's a message. Put it in quotes so the shell won't pick up most characters inside, like spaces or these: *?\"

replace 0:1 with the actual number (can be seen by running 'env | grep DISPLAY' on the user's terminal). If it's in a networked environment, the first zero is likely to change... (0:1 refers to the first compter with an X server running, on the second monitor).
Nebetsu
Posts: 4/356
How do I do that? I try to use xmessage, but it complains about not being able to open the display.
FreeDOS +
Posts: 14/1312
send an xmessage to their DISPLAY
Nebetsu
Posts: 3/356
I've figured out that the "wall" command will display the contents of a file to any user if they have some sort of terminal open, but what if they don't? I need to use SSH to make something pop up on someone elses screen using the terminal using SSH.
Ailure
Posts: 43/2602
Originally posted by DS_MaSTeR
First off, what's SSH? And second of all, why would you want to do that? You mean like make a popup appear on some one elses computer?


If you don't know what a term means, don't post about it. xD But heh, SSH is a life-saver when you need to fix something quick on another Linux computer.

Nebetsu: Define pop-up, I know what SSH is but i'm little confused here. I assume both computers are running Linux.

You mean that if there was a way to know (such through a popup) if a user logged (through SSH) into the system you're using?
FreeDOS +
Posts: 12/1312
Specifically, he didn't say X, but I did. And it meant the X Window System, not the operating system OS X that appeared about 15 years after X was invented.
Deleted User
Posts: 31/-7750
I never said he was using one. I just asked that because he said X, like in OSX. I mean it could be.
FreeDOS +
Posts: 11/1312
Net said nothing about using Mac...
Deleted User
Posts: 29/-7750
Okay, I think I lost you. Are you talking about making a message popup on someones computer using SSH but they are using a Mac? Is that what you're asking?
FreeDOS +
Posts: 10/1312
SSH = Secure SHell

Do you mean in the user's terminal or on a X session? Simply sending messages to a terminal don't typically show up in X.
Deleted User
Posts: 27/-7750
First off, what's SSH? And second of all, why would you want to do that? You mean like make a popup appear on some one elses computer?
Nebetsu
Posts: 2/356
Is there any way I can pop up a system message for a user of a machine by using SSH to get into it?
Acmlm's Board - I3 Archive - Hardware / Software - How do I pop up a system message in Linux from SSH?


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.010 seconds; used 351.44 kB (max 396.34 kB)