public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* XWin shows in "ps -a" but not in "ps"
@ 2010-08-13 11:02 Fergus
  2010-08-13 12:24 ` Morgan Gangwere
  0 siblings, 1 reply; 2+ messages in thread
From: Fergus @ 2010-08-13 11:02 UTC (permalink / raw)
  To: Cygwin ML; +Cc: Fergus

I have XWin running and it shows up as a process under
ps -a
but not under
ps

I think this behaviour is recent: certainly it has perturbed what were 
previously well-behaved scripts.

Supplementary:
I was basically using ps | grep in a script to query whether XWin was 
running. Am I correct that there is a procedure built in that will 
achieve this?

Thank you.

Fergus


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: XWin shows in "ps -a" but not in "ps"
  2010-08-13 11:02 XWin shows in "ps -a" but not in "ps" Fergus
@ 2010-08-13 12:24 ` Morgan Gangwere
  0 siblings, 0 replies; 2+ messages in thread
From: Morgan Gangwere @ 2010-08-13 12:24 UTC (permalink / raw)
  To: cygwin

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/13/2010 05:01 AM, Fergus wrote:
> I have XWin running and it shows up as a process under
> ps -a
> but not under
> ps

Time for another round of the blame game!

What's happening is that your shell is getting instantiated on a new vty.

Even on my /linux/ box, ps only ever shows up with what's running under
the child of my shell, so its not ps's fault, its more than likely
/XWin's/ fault for how it handled shells before.

More than likely however is that in your ~/.bashrc at one point before
was the line

alias ps='ps -a'

Even I have a few lines like that:

alias egrep='egrep --color=auto'
alias ls='ls --color=auto'
alias ll=' ls -alF'

- -- 
Morgan Gangwere <0 dotpunct fractalus atpunct gmail dotpunct com>
http://sonof.bandit.name/

あなたのお母さんは、ハムスターとあなたの父エルダーベリーのワカサギでした
- - A frenchman.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMZTmMAAoJEEURiCSotvJD05oP/22AgyBPJFmOq02DwFXqCHZu
bUVuGJgaOttu28VvuqZnBiFyHFkZaPoQL4wlqoG0NDVLgqm3EAJHwZIDKK3fvt69
zn8mNaljNaQxwid4ERak8v53pBjIT8QwHh6CXWn8X+Kuto+cZoSl9qMlYl71cIv9
+eh7zLTTeZm2VydhCnVhqk4lcHZCyUHaGcX6md8YlHOiJKuv9xho7WF8g/kHFuCA
IJXeenCcVMQdcrUvC25mMzEkjlJZkv+VgVCsObV5085imPJqsVI8CJFwomsIXPpz
NX/jG17p9Ws/NmadhLUV9I0XnE/Us0y0CGS/fywerI3iHExAWB8M9+N/lRhoN1hD
2m7sLXG0WI9wgfnnT0Co6L5uGs5IwGlPpq5Bgvfesh2+6nmNeXwkEc0qiOiafnar
m4uIUfMQsG3/11ocaVijIJibXVsMAXLmmAphN3JuniavR+Z8SYZs8WCIH2z9dKFM
5UhpadRngtDIg2yHFlROrgYVamLdwKfHmQdHL8qOTsUQyUEm65PDR4Sx6YPWJG+0
3tIqQKTVsRd8uNEjlN+EdvFH537zBu7Q5pgJvb0iMuB0+2jssipdYaxB5U5H1IFW
w3MlyKaNj6l2XJMQCE0HFeztdzhMwSDNoExoCHqBR1FEBUuhBHTL3u7oCdggkfM7
bT2NDmPk5eCn15+h4lQr
=khr/
-----END PGP SIGNATURE-----

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-13 12:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-13 11:02 XWin shows in "ps -a" but not in "ps" Fergus
2010-08-13 12:24 ` Morgan Gangwere

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).