6 Expect Script Examples to Expect the Unexpected (With Hello World)

6 Expect Script Examples to Expect the Unexpected (With Hello World).

 

Expect scripting language is used to feed input automatically to an interactive program. It is easy to learn compared to other scripting languages. Using expect script sysadmins and developers can automate redundant tasks easily. It works by expecting specific strings, and sending or responding strings accordingly.

Following three expect commands are used when automating any interactive processes.

  • send – to send the strings to the process
  • expect – wait for the specific string from the process
  • spawn – to start the command

Make sure to install expect packages on your system, as it does not get installed by default. Once installed, you’ll see the expect interpreter as “/usr/bin/expect”. Generally, expect script files has .exp as extensions.

Rainmeter, desktop customization tool

Rainmeter, desktop customization tool.

 

What’s on your desktop?

 

Rainmeter displays customizable skins, like memory and battery power, RSS feeds and weather forecasts, right on your desktop. Many skins are even functional: they can record your notes and to-do lists, launch your favorite applications, and control your media player – all in a clean, unobtrusive interface that you can rearrange and customize to your liking. Rainmeter is at once an application and a toolkit. You are only limited by your imagination and creativity.

Rainmeter is open source software distributed free of charge under the terms of the GNU GPL v2 license.

The Ice Cream Sandwich Desktop

The Ice Cream Sandwich Desktop.

 

The Ice Cream Sandwich Desktop

Flickr user David Molina wanted to bring the beauty of Android Ice Cream Sandwich to his desktop, and with a little tweaking and the right tools, we would have to say he definitely succeeded. The final result is a desktop that looks sharp and definitely has a lot in common with the mobile OS that inspired it.