ps command differs in ksh and bash



Hello,

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 !!!

Thank you for your help

Regards

.



Relevant Pages

  • Re: ps command differs in ksh and bash
    ... Can someone explain me why in bash the following command returns s ... value while not in ksh. ... grep -v grep ... It seems as if ksh could not handle long string!!! ...
    (comp.unix.shell)
  • Re: grep within files older than 3 days
    ... This is under ksh on AIX 4.2 ... out how to pipe it to grep to search within each file for the string ... After that you can grep what you need out of these files: ...
    (comp.unix.aix)
  • grep not expanding text strings containing variable refernces
    ... I basically want to read a text string from a config file which ... contains variable references using grep from a (ksh) shell script, ...
    (comp.unix.shell)
  • Re: Open Server 3.0 network printer problem Part III
    ... I Have never used OpenServer or OpenDesktop 3.0 but I sort of "cut-my-teeth" on Xenix, and IT had ksh! ... But who knows if your awk or your sh will work the same as mine since almost all bets are out the door now. ... then the grep one only if the awk one doesn't work. ...
    (comp.unix.sco.misc)
  • Re: string pattern matching
    ... Try grep: ... (example for ksh) ... Reinhard ...
    (comp.unix.shell)