Quantcast
Channel: expect – Take hold of IT technology trends – learn, practice, troubleshoot, blog
Browsing latest articles
Browse All 3 View Live

resolved – how to remove whitespaces in expect – tcl language

Here's the way to remove whitespaces automatically when using expect/tcl language: If $line is the string variable that you wanna remove whitespaces, just replace $line with the following in your...

View Article



remove duplicate images using fdupes and expect in linux

I've got several thousands of pictures, but most of them had several exact copies of themselves. So I had to remove duplicate ones by hand firstly. Later, I thought of that in linux we had md5sum which...

View Article

self defined timeout for telnet on Linux

telnet's default timeout value is relative high, so you may want to change timeout value to lower value such as 5 seconds. Here's the way that we can fulfill this: #!/bin/bash timeout() { waitfor=5...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images