Find the answer to your Linux question:
Results 1 to 7 of 7
If I'm logged into a computer as root, is there a command where I can broadcast a message to all the other users on the computer? If so, how does ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! groovygroundhog's Avatar
    Join Date
    Mar 2005
    Location
    Arlington, VA
    Posts
    77

    Broadcasting a message?


    If I'm logged into a computer as root, is there a command where I can broadcast a message to all the other users on the computer? If so, how does it broadcast to someone in X?

  2. #2
    Linux Guru Flatline's Avatar
    Join Date
    Feb 2005
    Posts
    2,204
    Don't know about via X, but on the command line if you wanted to say Hello users to everyone you could use
    Code:
    wall "Hello users"
    There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

    - Jeremy S. Anderson

  3. #3
    Just Joined! groovygroundhog's Avatar
    Join Date
    Mar 2005
    Location
    Arlington, VA
    Posts
    77
    thanks, that's what i was looking for

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Flatline's Avatar
    Join Date
    Feb 2005
    Posts
    2,204
    If you want to specify a username, etc. you can use the talk command:
    Code:
    talk <username>
    It can set up a two-way "conversation".
    There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

    - Jeremy S. Anderson

  6. #5
    Just Joined! groovygroundhog's Avatar
    Join Date
    Mar 2005
    Location
    Arlington, VA
    Posts
    77
    aren't there security risks with talk?

  7. #6
    Linux Guru Flatline's Avatar
    Join Date
    Feb 2005
    Posts
    2,204
    Probably, but I've never used it outside of a local test network. Most of the time if I want to talk to a user I get up and walk the 50 feet...
    There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

    - Jeremy S. Anderson

  8. #7
    Just Joined! groovygroundhog's Avatar
    Join Date
    Mar 2005
    Location
    Arlington, VA
    Posts
    77
    good point, and the walking is good excercise. But walking doesn't confuse people who are using Linux for the first time as I'm trying to do. To that end, any good ideas? I've already exhausted ejecting coworkers' cdroms remotely.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •