Tag Archives: NEED

How to remove listing of current user cmd from ps -ef listing?

By KDMishra

Hi All,

Could you please help to resolve my following issues:

Problem Description:

Suppose my user name is “MI90”.
i.e. $USER = MI90

when i run below command, i get all the processes running on the system containing name MQ.

ps -ef | grep MQ

But sometimes it lists “grep MQ” cmd also in its output, which is nothing but the above cmd which i executed to check all the running processes of system.
& sometimes not.

NEED:

My need is that it should always avoid listing “grep MQ“, which has been started just now by the current user i.e. MI90

Examples:

when i run $ ps -ef | gre MQ

i got :

MI90 36241614 36110452 0 05:41:31 pts/2 0:00 grep MQ
tibco 38535330 1 0 02:05:18 – 0:11 /appl/tibco/adapter/admqs/6 .2/bin/admqs –pid –run –propFile /appl/tibco/tra/domain/PR/application/MQAdap ter/MQAdapter-ABNAMROMQAdapter.tra –innerProcess
tibco 38797444 1 1 02:05:18 – 0:11 /appl/tibco/adapter/admqs/6 .2/bin/admqs –pid –run –propFile /appl/tibco/tra/domain/PR/application/MQAdap terNew/MQAdapterNew-ABNAMROMQAdapterNew.tra –innerProcess

but i always need only below:

tibco 38535330 1 0 02:05:18 – 0:11 /appl/tibco/adapter/admqs/6 .2/bin/admqs –pid –run –propFile /appl/tibco/tra/domain/PR/application/MQAdap ter/MQAdapter-ABNAMROMQAdapter.tra –innerProcess
tibco 38797444 1 1 02:05:18 – 0:11 /appl/tibco/adapter/admqs/6 .2/bin/admqs –pid –run –propFile /appl/tibco/tra/domain/PR/application/MQAdap terNew/MQAdapterNew-ABNAMROMQAdapterNew.tra –innerProcess

So please help me in getting such o/p….

Thanks in advance!
Regards,
KD

Source: FULL ARTICLE at The UNIX and Linux Forums

Is Your American Hero Late Or Great?

By capblack

Nadra Enzi Is Your American Hero Late Or Great?

I tell American Black men that they are AMERICANS! NOT “refugees”, “political prisoners”, and other outcast outlooks downloaded like malware.

I remind brothers (of ALL colors) that we MUST be MORE than our circumstances!

This Not-So-Great Recession is breaking spirits from one end of America to the other. My “Make Peace With America” message is needed NOW more than EVER.

American Heroes within each of us are needed now more than ever! Big faces in high places don’t have us at the top of their To Do lists!

Hard as things are presently, it’s up to us!

Was the first winter the pilgrims had hard? YOU BET! No central heat nor high-tech thermal clothing was available, so guess what? People died cold and miserable.

THANK GOD YOU AT LEAST HAVE COMFORT TO COMPETE FOR TODAY!

Was it hard being an African slave or an American one for that matter? YOU BET! As much as we gripe about (VERY) high taxes and liberty, no one owns us outright- not yet at least.

THANK GOD LEGAL SLAVERY AND ITS FIRST COUSIN, INDENTURED SERVITUDE (WHICH MANY WHITES WERE WHO FIRST ARRIVED TO AMERICA) ARE OVER!

I’m not giving you some pie-in-the-sky rap where everything is gonna be fine if we hold hands and sing an old Negro spiritual.

I AM SAYING we’ve got to look to our history (ALL OF IT and not just our portion) for inspiration- and information!

People who had it MUCH WORSE than many of us made it. We need to study their stories deeply.

Everyone reading this has an American Hero inside him- or herself. This American Hero may already be active, helping others with little more than good intentions to keep him going.

Other American Heroes may lurk under the surface, struggling against doubt or depression. I’m saying you NEED to be a Hero for yourself first!

You’ve got to slay dragons in your life; and with that strength, you can help others do the same. There are men, women, and children who draw strength from strong men in their midst.

The American Hero within can either be late (as in dead), or great (as in larger-than-life.)

Your move, boss man!

Cap Black, The Hood Conservative
504 214-3082

Donate To An American Hero Fate!

http://www.gofundme.com/197xk8

‘ Be Your OWN Superhero! “

Source: FULL ARTICLE at Western Journalism