This is a quick post to show how one can issue commands to telnet session from a shell script or command line with out going into interactive mode. I use this to get stats from our memcache servers or issue a flush_all via telnet from a script/cron.
So without further delay, following command will telnet [...]
Read the full article...
In Linux, there is no command which will rename a user account. If you make a mistake creating a user account, user changes their name or if user does not like his user name, there is no real easy way of going and making the change. Only thing I know you can do is [...]
Read the full article...
Buddy of mine asked me a question over chat today: “how do I show my machines’ IP at login prompt with out logging in?” He is referring to his Virtual Machine in this case. He does not want to have to log in to the server to see what ip it has (since [...]
Read the full article...
Setting up Samba “can” be complicated at times. Especially if you are looking for instructions online where there are WAY too many tutorials which go in to details about what configuration does what, etc. Well, this post is nothing like that. Here I just show you quick and easy way to install [...]
Read the full article...
Let us say that you want to rename all of your “.php3″ files to “.php” files. How you do this with minimal effort? Answer lies in for loop.
for old in *.php3; do cp $old `basename $old .php3`.php; done
Thats all there is to it. Let us say you need to rename index.php3 [...]
Read the full article...