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 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
watch command will (every second) issue a
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!)
Win an iPhone 6
Enter to Win
|Geek Hide-away in Guatemala - Stay for Free!||Nov 26, 2015|
|Microsoft and Linux: True Romance or Toxic Love?||Nov 25, 2015|
|Non-Linux FOSS: Install Windows? Yeah, Open Source Can Do That.||Nov 24, 2015|
|Cipher Security: How to harden TLS and SSH||Nov 23, 2015|
|Web Stores Held Hostage||Nov 19, 2015|
|diff -u: What's New in Kernel Development||Nov 17, 2015|
- Microsoft and Linux: True Romance or Toxic Love?
- Cipher Security: How to harden TLS and SSH
- Non-Linux FOSS: Install Windows? Yeah, Open Source Can Do That.
- Web Stores Held Hostage
- Geek Hide-away in Guatemala - Stay for Free!
- Firefox's New Feature for Tighter Security
- PuppetLabs Introduces Application Orchestration
- diff -u: What's New in Kernel Development
- It's a Bird. It's Another Bird!
- IBM LinuxONE Provides New Options for Linux Deployment