Tip (unix utility)
Encyclopedia
tip is a unix
Unix
Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs, including Ken Thompson, Dennis Ritchie, Brian Kernighan, Douglas McIlroy, and Joe Ossanna...

 utility for establishing a terminal
Terminal emulator
A terminal emulator, terminal application, term, or tty for short, is a program that emulates a video terminal within some other display architecture....

 connection to a remote system via a modem
Modem
A modem is a device that modulates an analog carrier signal to encode digital information, and also demodulates such a carrier signal to decode the transmitted information. The goal is to produce a signal that can be transmitted easily and decoded to reproduce the original digital data...

. It is commonly associated with Sun's
Sun Microsystems
Sun Microsystems, Inc. was a company that sold :computers, computer components, :computer software, and :information technology services. Sun was founded on February 24, 1982...

  Solaris as it comes with that operating system.

Basics

Tip is one of the commands referenced in the expect
Expect
Expect is a Unix automation and testing tool, written by Don Libes as an extension to the Tcl scripting language, for interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, ssh, and others. It uses Unix pseudo terminals to wrap up subprocesses transparently, allowing the...

 reference book by Don Libes.

The tip command line options are as follows

tip [-v] [-speed-entry] {hostname | phone-number | device}

use ~. to exit

Examples

This Expect
Expect
Expect is a Unix automation and testing tool, written by Don Libes as an extension to the Tcl scripting language, for interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, ssh, and others. It uses Unix pseudo terminals to wrap up subprocesses transparently, allowing the...

 script is a simple example that establishes a terminal session:


spawn tip modem
expect "connected"
send "ATD$argc\r"
set timeout 30
expect "CONNECT"


As tip does not have the built-in logging capabilities that Minicom has, we need to use some other means to record the session. One way is to use script
Script (Unix)
script is a Unix utility that records a tty session. scriptreplay offers a replay function to script. script captures the session in file name typescript by default, to specify a different filename follow the script command with a space and the filename as such: script recorded_session.Ttyrec...

:


raub@kushana-134>script -a install.log
Script started, file is install.log
raub@kushana-1>tip hardwire
[tip session takes place]
raub@kushana-2>exit
Script done, file is install.log
raub@kushana-135>


and so on. In the above example, run on a Sun
Sun Microsystems
Sun Microsystems, Inc. was a company that sold :computers, computer components, :computer software, and :information technology services. Sun was founded on February 24, 1982...

 SPARC
SPARC
SPARC is a RISC instruction set architecture developed by Sun Microsystems and introduced in mid-1987....

 20 workstation
Workstation
A workstation is a high-end microcomputer designed for technical or scientific applications. Intended primarily to be used by one person at a time, they are commonly connected to a local area network and run multi-user operating systems...

 running Solaris 9, we first create a log file called install.log in the current directory using script and then tell tip to use serial port B.
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK