Tech Tip: Create an Automatically Scrolling Reader
By combining three useful command-line tools (less, watch and xdotool) along with two xterm windows, you can create an automatically scrolling reader.
Say you have a good book in text-file form ('book.txt') that you just downloaded from Project Gutenberg.
Open one xterm and do the usual thing you do when you want to read
that book with less:
$ less book.txt
Look at the first few characters in the title line of that xterm's
window. (In mine, it was bzimmerly@zt, which is my user ID and the name
of the machine I was working on.)
Open another xterm, issue this command, and watch (pun intended) the magic:
$ watch -n 1 xdotool search --name bzimmerly@zt key ctrl+m
The watch command will (every second) issue a
"Return" (Ctrl-m)
keystroke to the window that has "bzimmerly@zt" as a title,
and it will
stop only when you interrupt it with Ctrl-c! I think this is neato
daddyo! (What can I say? I'm a child of the '60s!)
Today’s modular x86 servers are compute-centric, designed as a least common denominator to support a wide range of IT workloads. Those generic, virtualized IT workloads have much different resource optimization requirements than hyperscale and cloud applications. They have resulted in a “one size fits all” enterprise IT architecture that is not optimized for a specific set of IT workloads, and especially not emerging hyperscale workloads, such as web applications, big data, and object storage. In this report, you will learn how shifting the focus from traditional compute-centric IT architectures to an innovative disaggregated fabric-based architecture can optimize and scale your data center.
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
| 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 |
| Non-Linux FOSS: Seashore | May 10, 2013 |
| Trying to Tame the Tablet | May 08, 2013 |
| Dart: a New Web Programming Experience | May 07, 2013 |
- RSS Feeds
- New Products
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Drupal Is a Framework: Why Everyone Needs to Understand This
- A Topic for Discussion - Open Source Feature-Richness?
- Home, My Backup Data Center
- Developer Poll
- Readers' Choice Awards
- What's the tweeting protocol?
- Dart: a New Web Programming Experience
- Linux is good
38 min 8 sec ago - Reply to comment | Linux Journal
55 min 25 sec ago - Web Hosting IQ
1 hour 25 min ago - Web Hosting IQ
1 hour 25 min ago - Web Hosting IQ
1 hour 26 min ago - Reply to comment | Linux Journal
4 hours 27 min ago - play with linux? i think you mean work-around linux
12 hours 53 min ago - Where is Epistle?
12 hours 59 min ago - You forgot OwnCloud
13 hours 28 min ago - aplikasi free
16 hours 43 min ago
Enter to Win an Adafruit Prototyping Pi Plate 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 Prototyping Pi Plate 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
- Next winner announced on 5-21-13!
Free Webinar: Linux Backup and Recovery
Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.
In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.



Comments
Scrolling Reader using tabs
Worked fine for me under using Ubuntu 10.10 (Meerkat), so I tried using tabs - one for the document, a second for the command. Start it then click on the document tab and scrolling starts. To pause it, click on the command tab which then receives (but ignores) the "Return"s. Click the document tab to resume lazy reading.
Note, however, that if you have another terminal window open with the same title line it will send to that.
Error opening terminal: xterm-256color
how do we go about installing the necessary terminfo files then?
hmmpf. all I get in the
hmmpf. all I get in the second xterm is a ">"
Thanks for sharing
it looks cool to give a try will be back after making and experiment with this