Re: ps command differs in ksh and bash
- From: Bill Marcum <bmarcum@xxxxxxxxx>
- Date: Wed, 27 Sep 2006 10:58:36 -0400
On 27 Sep 2006 05:08:10 -0700, Salvatore
<salvatore.didio@xxxxxxxxxx> wrote:
Hello,Are you certain you typed exactly the same string, and that
Can someone explain me why in bash the following command returns s
value while not in ksh.
In bash
[webadmin@pomme webadmin]$ ps -ef | grep jakarta-tomcat-5.0.28_rec |
grep -v grep
tomcat 17501 1 0 12:42 pts/2 00:00:34
/usr/local/java/bin/java -server -Xms128m -Xmx512m
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat-5.0.28_rec/common/endorsed
-classpath
/usr/local/java/lib/tools.jar:/usr/local/jakarta-tomcat-5.0.28_rec/bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.28_rec/bin/commons-lo
[webadmin@pomme webadmin]$ ksh
In ksh
$ ps -ef | grep jakarta-tomcat-5.0.28_rec | grep -v grep
$
It seems as if ksh could not handle long string !!!
jakarta-tomcat was running both times? It looks as if your ps in bash
is aliased with the "show all parameters" option. Is there a different
alias under ksh?
--
People who think they know everything greatly annoy those of us who do.
.
- Follow-Ups:
- Re: ps command differs in ksh and bash
- From: Salvatore
- Re: ps command differs in ksh and bash
- References:
- ps command differs in ksh and bash
- From: Salvatore
- ps command differs in ksh and bash
- Prev by Date: Re: simple alias doesn't work
- Next by Date: Re: Grep can find a pattern in a text, but not in a file
- Previous by thread: ps command differs in ksh and bash
- Next by thread: Re: ps command differs in ksh and bash
- Index(es):
Relevant Pages
|