Results 1 to 3 of 3

Thread: Echo a message on all terminals?

  1. #1
    Join Date
    Jul 2008
    Beans
    Hidden!

    Question Echo a message on all terminals?

    Hi

    I want to make a script that prints/echos a message on all open terminals (virtual?) for all users. Like the halt does; a systewide message is printed.

    How do I achieve this? Thanks!

  2. #2
    Join Date
    Jul 2005
    Location
    Boulder Creek, CA
    Beans
    74
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Echo a message on all terminals?

    Old Unix, not apple specific, but have you looked at the manual page for the wall command?

    Try:

    Code:
    echo "This is a test." | wall
    MBPro2,1 15" 2.33C2D Oct06 -rEFIt OS10.6/XP/LinuxMint
    PowerBook 12" 1.0 G4 PPC OS10.4/Debian Lenny - BCM4306(rev03) WPA works
    Shuttle XPC 3.3 c2D -grub Win7-64/ArchLinux-amd64
    Many VM's

  3. #3
    Join Date
    Jul 2008
    Beans
    Hidden!

    Re: Echo a message on all terminals?

    Quote Originally Posted by guidop View Post
    Old Unix, not apple specific, but have you looked at the manual page for the wall command?

    Try:

    Code:
    echo "This is a test." | wall
    Oh thanks! That's just what I was looking for

Bookmarks

Posting Permissions

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