LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-01-2003, 08:41 PM   #1
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Silly Question


I'm currently logged into my machine using ssh from a remote location. My girlfriend is browsing the internet now on my server. I like to have fun with her and print stuff out and make Linux do all crazy things.

Is there a command I can issue that will display a 'pop-up' message. I know when you do a shutdown command it will pop up occasionaly and say 'The system is going down in 30 minutes' or whatever. Any commands like that?
 
Old 04-01-2003, 08:54 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
I'm not sure how RH implements this, but
I'd think it's possibly some demon that listens
to wall :)

To be able to pop-up stuff on her screen as
a different user she'd need xhost +localhost
enabled ;) ... then, of course, you could
pester her with anything x-related you want
by setting your DISPLAY=localhost:0.0

Cheers,
Tink
 
Old 04-01-2003, 08:57 PM   #3
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
just ssh to the box then
$mozilla
or gaim or whatever

this should start that program on that box.
 
Old 04-01-2003, 09:01 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Original Poster
Rep: Reputation: 57
I know I can run any X application I want on the server but the question is WHAT application will 'pop-up' with a message of my choosing. I imagine it would be something like:

popup 'Hey what are you doing?' <enter>

but of course it is not that. I guess I could just create a text file with the message I wanted and then open up that text file in an editor. I just thought there might be an application that is specific for this situation.
 
Old 04-01-2003, 09:03 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Did you try a
wall?

Cheers,
Tink
 
Old 04-01-2003, 09:07 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
ytalk (?) or just talk are sometimes mentioned, I don't know how well that'd work though since I've never used em

Cool
 
Old 04-01-2003, 09:16 PM   #7
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Original Poster
Rep: Reputation: 57
Quote:
Originally posted by Tinkster
Did you try a
wall?

Cheers,
Tink
Whats "wall"? Did you mean it like 'I'm going A-WALL!' ?

MasterC I don't have talk installed because I heard it is a very insecure feature to use. Not sure about ytalk but I imagine it is part of the talk package.

hmmm....
 
Old 04-01-2003, 09:26 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Quote:
Originally posted by Crashed_Again
Whats "wall"? Did you mean it like 'I'm going A-WALL!' ?
man wall
Code:
WALL(1)                 System General Commands Manual                 WALL(1)

NAME
     wall - write a message to users

SYNOPSIS
     wall [file]

DESCRIPTION
     Wall displays the contents of file or, by default, its standard input, on
     the terminals of all currently logged in users.

     Only the super-user can write on the terminals of users who have chosen
     to deny messages or are using a program which automatically denies mes-
     sages.

     Reading from a file is refused when the invoker is not superuser and the
     program is suid or sgid.

SEE ALSO
     mesg(1), talk(1), write(1), shutdown(8)


Cheers,
Tink
 
Old 04-01-2003, 09:28 PM   #9
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
http://www.deadmule.com/macewan/scre...p/helloworld.c

then

gcc -Wall -g helloworld.c -o hello_world `gtk-config --cflags` \
`gtk-config --libs`
 
Old 04-01-2003, 11:50 PM   #10
Dave Skywatcher
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 127

Rep: Reputation: 16
Just write a script in PerlTk, PythonTk, etc. that pops up a box with a string, which comes from an argument you pass to it on the command line. Should be really, really easy if you've used Tk before (I haven't, or I would write it for you).
 
Old 04-04-2003, 07:46 AM   #11
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Original Poster
Rep: Reputation: 57
OH yeah Tinkster! wall is what I wanted. Something like:

wall "Hey! What are you doing on my computer?"

works great. Thats exactly what I was after. Thanks buddy.

I wonder why it is called 'wall'?
 
Old 04-04-2003, 04:29 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Since it's normally just used for administrative
tasks (notice the reference to shutdown in man?)
I assume its short for "warn all" - as in "warn
all users that the box is going down soon!" ;)

Cheers,
Tink
 
Old 04-05-2003, 02:41 AM   #13
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
I could've sworn it stood for 'write all', since it displays it to all users.
; )

As for the message, the problem I think is...wall is a console thing. But you were asking for a pup up? In that case you would need to start an xterm (or similar) and then run wall, right?

How about look into xmessage ('man xmessage') which will actually popup a window with a message/program output/etc in it.
 
Old 04-05-2003, 03:15 AM   #14
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Original Poster
Rep: Reputation: 57
Quote:
Originally posted by cuckoopint
How about look into xmessage ('man xmessage') which will actually popup a window with a message/program output/etc in it.
Oh! I was satisfied with 'wall' but xmessage has a bit more options. Thanks cuckoopint! Its always great to learn new commands.
 
Old 04-06-2003, 01:55 AM   #15
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
The problem (actually it's a feature, I'd consider
the other behaviour a security hole) that I
(Slackware?) have with xmessage is that it
doesn't work if the user didn't explicitly enable
xdisplays from other than his own actual display
(eg xhost +localhost, xhost + ).

But since both RH and MDK have that little
demon listening for wall per user by default
I thought it'd be a good idea ;)

Cheers,
Tink

Last edited by Tinkster; 04-06-2003 at 06:39 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Silly question huble General 5 02-17-2005 03:03 AM
Silly Question koodoo Linux - Newbie 2 02-14-2005 08:20 AM
silly question bruj3w Slackware 3 08-20-2004 01:51 PM
Silly question? pudhiyavan Linux - Networking 1 12-09-2003 04:44 AM
Silly Question MattB Linux - Software 1 06-06-2002 12:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration