Expect Debug Mode Enable/Disable
If you want to debug your expect program, just add the code below at the very top of your program. #!/usr/bin/expect -d Notice the -d at the end of the.. read more
If you want to debug your expect program, just add the code below at the very top of your program. #!/usr/bin/expect -d Notice the -d at the end of the.. read more
The other day, I’ve been pulling my hair because suddenly, the media upload on WordPress is not working properly on one of my servers. I’m sure this kind of problem.. read more
Every wonder why somehow in CentOS, you cannot overwrite files with the cp command even with the -f option? The man page clear shows the -f will force the overwriting.. read more
Suppose you have the ip address but need to get the hostname (ip name), you can use the commands below. Windows Syntax nbtstat -a [ip address]
I hardly know scripting commands in DOS/Windows Console so I struggle everytime I encounter situations when I need to use them. Case in point is searching for text in files… read more
How do we exactly count the occurrence of a particular character in a string in bash scripting? Well, there’s quite a number of ways of doing this. Here’s the simplest.. read more
Sometimes, upgrades fail at some point for some reason. That will leave your site in maintenance mode and unusable. That’s the “Briefly Unavailable for Scheduled Maintenance” that we see while.. read more
In case you are looking files using ls or find command and only want to get the first file found, the command would be like. ls -l /any/path/filename*|sed -e ‘s///,/g’|awk.. read more
After the unfortunate incident last week with NordicVPS, I decided to look for a new VPS host. As usual, I went to lowendbox and get the reviews in webhostingtalk. It’s.. read more