View topic - ps -ef | grep io-audio

ps -ef | grep io-audio

anything that doesn't fit to other groups.

ps -ef | grep io-audio

Postby sheran.vaz » Mon Feb 20, 2012 5:07 pm

Hi,

Here is the issue that i'm facing

when i execute "ps -ef" i'm able to get the list of running processes.

next when i try to execute
"ps -ef | grep io-audio" it gets hanged.

if i kill it pressing ctrl+c and then execute it. It works fine.
(Note: io-audio was listed "ps -ef" cmd was executed)

Can some one help me with this? (It happens for every first time after booting)

Regards
Sheran
sheran.vaz
Senior Member
 
Posts: 101
Joined: Mon May 11, 2009 9:17 am

Re: ps -ef | grep io-audio

Postby mario » Mon Feb 20, 2012 5:36 pm

Maybe ps -ef sends data to stderr so grep is waiting for ever for data on stdout, or it's not terminated by a \n

Try: "pidin | grep io-audio instead"

Most people use pidin instead of ps.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Re: ps -ef | grep io-audio

Postby sheran.vaz » Mon Feb 20, 2012 7:39 pm

will try as you suggested mario.

is it a common issue which everyone face while using "ps". how is it? that it wont happen with "pidin"
sheran.vaz
Senior Member
 
Posts: 101
Joined: Mon May 11, 2009 9:17 am

Re: ps -ef | grep io-audio

Postby mario » Tue Feb 21, 2012 4:54 pm

No idea I've never use ps ;-)
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Re: ps -ef | grep io-audio

Postby sheran.vaz » Fri Feb 24, 2012 5:26 pm

OK, Can anyone provide more inputs on this regard?
sheran.vaz
Senior Member
 
Posts: 101
Joined: Mon May 11, 2009 9:17 am

Re: ps -ef | grep io-audio

Postby maschoen » Tue Feb 28, 2012 8:55 pm

I run "ps -ef | grep io-audio" on a QNX 6.3.2 system (it's what I have access to right now) and it works fine.
I can try it on a QNX 6.5 system later if you ask. I suspect some local problem on your system.
maschoen
QNX Master
 
Posts: 2715
Joined: Wed Jun 25, 2003 5:18 pm


Return to General Programming

Who is online

Users browsing this forum: No registered users and 3 guests