better bash debugging

2011-09-16 1 min read bash Linux
I was trying to debug some bash scripts yesterday and learnt something new 😉 There are lot of things in bash that you can use to debug and to start with you can enable xtrace mode as follows: set -x With this set you will see that all the commands are printed along with all other information as they are executed. This you can do for any line or for the function or for the whole script. Continue reading

The Hidden PS

2010-11-27 2 min read bash Linux
1 <td> <div class="text codecolorer"> &nbsp;for p in `ps L|cut -d' ' -f1`;do echo -e "`tput clear;read -p$p -n1 p`";ps wwo pid:6,user:8,comm:10,$p kpid -A;done </div> </td> </tr> While going through the source code for the well known ps command, I read about some interesting things.. Namely, that there are a bunch of different fields that ps can try and enumerate for you. These are fields I was not able to find in the man pages, documentation, only in the source. Continue reading

Skyline with Red color – from mobile.

2010-11-07 1 min read Photo
Have you ever wondered, how the red skyline would look if you did not have your favourite camera with you to capture it. I had only my Samsung Omni Windows Mobile with me to capture this, do comment on how they look 🙂 [][1]Red Skyline [][2]Red Skyline [][3]Red Skyline [][4]Red Skyline Related articles Top-ranked Skyline routs Jackson, 56-3 ( Trailer: Skyline Cues Up the Visual Effects for Hovering Aliens (wired. Continue reading

wine-doors – door to wine with applications like photoshop and lots of windows games.

2010-04-07 1 min read Linux
wine is the project to natively support the Windows application on the Linux platform. But people who have tried to use it know that there are lot of dependencies on the Windows programs which cannot be resolved so easily :). There is a project called <a href="" target="_blank">wine-doors. Here is the screen shot of wine-doors. When you start wine doors for the first time, the application will install the necessary dependency and not only that when you are installing any of the other applications then too it will install all the other required dependencies and its like working with windows without affecting the stability of your OS 🙂 Continue reading