The Term Protocol
Term is very flexible with many configuration options on the command line as well as in the .termrc file. Running term is much like running linecheck:
Using a communications program, dial up your remote account and log in
Start term from that account. A sample command line might be:
term -l $HOME/tlog -s 38400 -c off -w 10 -t 150 -r
This command line indicates:
Set the log file to tlog in your home directory
Set the line speed to 38400 bps
Turn off term's compression (presumably because your modem does better compression)
Use a window setting of 10 (explained in the term documentation)
Use a timeout of 150 (explained in the term documentation)
Set this as the ”remote“ side
Shell back to your local computer, either by suspending your terminal program, or using its built-in shell features. For Kermit, use ctrl-Z, for xcomm use ctrl-a-x. (Check your specific terminal program's own documentation.)
Initiate term on your local computer:
term -c off -l $HOME/tlog -s 38400 -w 10 -t 150 < /dev/modem > /dev/modem &
The only difference in this case is the redirection to the modem device and lack of the -r option.
It should be noted that all of the command-line arguments can be placed in the . termrc file so you need only type term by itself to initiate it:
.termrc: compress off speed 38400 window 10 timeout 150
Note that you will still need to put the redirection on the command line.
The standard term clients trsh, tredir, tmon, ”upload, and txconn are relatively easy to use. The most commonly used utility is trsh.
trsh is used to access your remote account as if you were using rlogin to access it. trsh can also act like rsh and execute commands on your remote host:
% trsh Remote: term 2.0.4 tty /dev/ttyp4. exec /usr/local/bin/tcsh foober : /home/ j oeuser% % trsh -s uptime 1:15am up 20 days, 17:30, 3 users, load average: 1.00, 1.00, 1.00
The most utilitarian of the term clients, this command allows you to manually redirect TCP/IP ports for use with term. For example, to allow incoming telnet sessions to your home computer, you need to redirect a port on the remote host to your own telnet port, which is port 23. The common command format of tredir is:
tredir [thiscomputer: ]port [thatcomputer: ]port
By default, the first port is the port on the machine you are running the command on, the second port is the port value on the other computer you are redirecting to.
In this example, I want to redirect port 4000 to my own port 23:
remotehost% tredir 4000 23 Redirecting 4000 to 23 remotehost% telnet localhost 4000 Trying . . . Connected to localhost. Escape character is '^] ' Linux 1.1.35 (linuxbox) (ttyp3) linuxbox login:
Another example of use of tredir is to configure your system to allow reading news via your network's NNTP news server. This requires a tredir on the local side of term, instead of the remote:
linuxbox% tredir 119 news. server.com: 119 Redirecting 119 to news.server.com:ll9 linuxhox% export NNTPSERVER=localhost linuxbox96 trn
[normal trn session follows]
Notice that in this example the NNTPSERVER variable is set to localhost. This is because the local 119 port has been redirected to the real network NNTP server. So any connections to the localhost NNTP port is redirected to the real one on the remote computer. A direct connection to the actual NNTP server (setting NNTPSERVER to news.server. com) would not be possible on a term link, unlike SLIP/PPP which would allow this. tredir makes possible the use of many applications that use standard TCP sockets, such as sendmail, IRC, MUD's, MUCK's, and many other similar multi-user games.
This is the term equivalent of sz or other file upload/download protocols. It allows the transfer of files from the local machine to the remote, or vice-versa, depending on which end the command is initiated. Commonly, the command line would look like:
linuxtox% tupload foot tar. gz
Which would send a copy of the file foo.tar.gz to the remote host. Some useful flags are illustrated below:
linuxbox% tupload -vv -p -16 foo.tar.gz Changing priority to -16 sending foo.tar.gz 30651 of 259727 (11%), current CPS 3083. ETA: 76.8 TT: 84.2
The -vv flag means give verbose messages on the status of the upload, while -p means change the term priority of the upload. This prioritizing allows you to nice a term process so it doesn't hog bandwidth from the other term applications you may be running. This is useful for large background transfers.
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Designing Electronics with Linux | May 22, 2013 |
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
- Designing Electronics with Linux
- New Products
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Dynamic DNS—an Object Lesson in Problem Solving
- Linux Systems Administrator
- Senior Perl Developer
- Technical Support Rep
- UX Designer
- Web & UI Developer (JavaScript & j Query)
- Using Salt Stack and Vagrant for Drupal Development
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Featured Jobs
| Linux Systems Administrator | Houston and Austin, Texas | Host Gator |
| Senior Perl Developer | Austin, Texas | Host Gator |
| Technical Support Rep | Houston and Austin, Texas | Host Gator |
| UX Designer | Austin, Texas | Host Gator |
| Web & UI Developer (JavaScript & j Query) | Austin, Texas | Host Gator |
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?




2 hours 59 min ago
3 hours 33 min ago
4 hours 31 min ago
5 hours 22 min ago
9 hours 23 min ago
13 hours 11 min ago
13 hours 19 min ago
15 hours 33 min ago
18 hours 3 min ago
1 day 4 hours ago