Results 1 to 4 of 4

Thread: sending a message to all users bash

  1. #1
    Guest

    Default sending a message to all users bash

    how do i send a message to all users under bash shell. no matter if they are doing ftp or ssh or anything else my message should be send to all of them

    king regards


  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,500
    Thanks
    17
    Thanked 789 Times in 507 Posts
    Rep Power
    10

    Default

    Use wall command to send message to all users. Wall displays the contents of file or, by default, its standard input, on the terminals of all currently logged in users.
    Type wall command followed by message, when done hit CTRL+D
    wall

    More info at http://www.cyberciti.biz/nixcraft/vi...all-users.html
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  3. #3
    Junior Member
    Join Date
    Sep 2010
    Posts
    16
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Thanks it really helped me ....i just found urs from
    Last edited by nixcraft; 16th September 2010 at 10:49 PM. Reason: If you put a URL in your post, it must be relevant.

  4. #4
    Junior Member
    Join Date
    Sep 2010
    Posts
    22
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Rep Power
    0

    Default

    i use a command like..

    echo "SYSTEM BEING SHUT DOWN IN 5 MINUTES" | wall

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. to avoid recommended memory message in RHEL
    By token in forum CentOS / RHEL / Fedora
    Replies: 0
    Last Post: 22nd April 2008, 07:08 AM
  2. network message
    By anharikrishna in forum Networking, Firewalls and Security
    Replies: 1
    Last Post: 6th September 2007, 03:02 PM
  3. Unix sending file attachment command
    By sweta in forum Solaris/OpenSolaris
    Replies: 1
    Last Post: 10th August 2007, 08:19 PM
  4. Apache site is down message
    By sweta in forum Web servers
    Replies: 1
    Last Post: 4th January 2007, 11:37 PM
  5. Login fail message
    By ricc in forum Shell scripting
    Replies: 4
    Last Post: 13th August 2005, 12:43 AM

Posting Permissions

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