How to Display a Message in a Separate Window in Unix

The Unix and Linux operating systems provide a wide array of powerful tools for rerouting information and messages into logs, other windows and even directly into other programs. This makes it possible for Unix scripters to create sophisticated programs simply by chaining together other tools in the correct order.

Instructions

    • 1

      Open two terminals. The first will be the receiver that displays the incoming messages, and the other will run the programs that generate the messages. How to open the terminals will depend upon your version of Unix.

    • 2

      In the first terminal, type the following to create an empty buffer file to hold the messages:

      echo "" > log

    • 3

      In the first terminal, type the following to begin listening for messages:

      tail -F log

    • 4

      In the second terminal, type the following to reroute a list of all the files in the directory to the listening window:

      ls -a -l > log

    • 5

      In the second terminal, type the following to send a friendly "Hello" message to the other terminal:

      echo "Hello" > log

Related Searches:

References

Comments

You May Also Like

  • How to Display the Contents of a File in Unix

    Viewing a file in UNIX can help you find and fix errors while also allowing you to see the entire contents at...

  • Unix Kernel Tutorial

    If you are first beginning to use a Unix operating system, as opposed to a Windows-based OS, then you may be find...

  • Unix Screen Command Tutorial

    The Unix command line provides access an extensive list of software tools designed to maximize command line efficiency. The Screen command features...

  • How to Tell If a CMOS Battery Is Low

    Is your computer's clock falling behind or continually incorrect even though you might have reset the time? Read these tips to learn...

  • How to Send a SMS From Unix

    Type in: echo "text-message" | mailx -s "test" <yourcell phone no>@yourcarrier.(net/com) "Text-message" represents the words in the text message you want to...

  • Unix Windows Tools

    Unix Windows Tools. Unix is a free operating system that has been around since the 1960s while Microsoft Windows started in 1985....

  • Unix Mail Tutorial

    The UNIX system is a large part of everyday life. As the Open Group website points out, life as we know it...

  • How to Install Print Services for Unix

    Microsoft's Print Services for Unix application allows you to manage print jobs sent from remote Unix clients, send print jobs to Unix...

  • How to Install TCP/IP Print Service

    The transmission control protocol/Internet protocol (TCP/IP) print service is a Microsoft Windows network service which implements the line printer remote (LPR ...

  • How to Create a File in Unix

    Creating a file is very easy to do in Unix. Many Unix users make programs that create zero length files on the...

  • How to Access a Flash Drive on a Unix System

    On a Unix (and Linux) operating system, a flash drive must be mounted before you can use it. Most modern Unix operating...

  • Unix Shell Scripting Tutorial

    A shell is a software interface with which the user interacts. A Unix shell is a shell built upon the Unix operating...

  • Unix Domain Sockets Tutorial

    Unix provides a technology known as domain sockets to facilitate communication between different processes and even different applications. One of the oddities...

  • Unix Command Tutorial

    Although there are graphical user interfaces available for Unix systems, it is still common to type commands at the terminal window. If...

  • Difference Between Windows NT & Windows XP & Unix in Security

    Windows NT and XP incorporate security features that simplify network security. Windows NT and XP still include features that would be seen...

  • How to Use Net Send to Send Computer Messages

    You May Also Like. How to Send a Message to Another Computer in Networking. The Microsoft Windows operating system has a messenger...

  • How to Create Business Flyers With Tear-Off Tabs

    Whether you have just started a new business venture or you need to advertise your existing business, creating your own flyers with...

  • How to Delete Script Error Messages

    Script error messages appear in Internet Explorer when the program has problems reading the script on a particular website. Internet script errors...

Related Ads

Featured