Thursday, April 27, 2006

Shell tip:Bring background processes to the foreground

This is something that most people using linux may have known. Though I have been using linux for a long time now, I did not know how to bring a particular process running in the background (using the & option) to the foreground after I have many background processes running. Let me illustrate this with an example. Let us run two processes in the background and see how we can bring either of them to the foreground.

> top &

> emacs &

Now typing "jobs" will inform you of the bacground processes

>jobs
[1] + Suspended (tty output) top
[2] - Running emacs

It can be observed that each process has a unique id on the left. That can be used to bring the process to the foreground.

> fg %1

will bring "top" to the foreground.


This is something I learnt today and may be helpful to you too, IMHO.

Saturday, April 08, 2006

Govt employees unhappy with Jayalalithaa

This happened in 2003 when many government employees in TamilNadu, India went on a long strike with a host of issues including asking for more bonus. The Chief Minister of state made a bold decision (IMHO) and dismissed them because they were **NOT** doing their job (The general opinion is that government employees seldom do their work :)). If you were working in a Multi-national company and did not do your job, it is only fair that you get fired.

I am appalled to see that government employees are upset about being fired when they were really lacking on duty! wake up guys! work for the money you get! do your work first (if that happens), then ask for bonuses :). There is a word called "professionalism", alteast try to find the meaning of the word!