Hi I suggest you look elsewhere for help and ideas how to get a process list to only show limited information.
The unix shell is powerful, and you can pipe output to other commands that can parse and extra details you only want, such as awk or sed. On Thu, Nov 14, 2013 at 1:23 AM, HellKnight <hellkni...@foxmail.com> wrote: > Mr. Mielke: > Quote from your post: > 1063855181 71497 71476 0 0:00.38 ttys015 0:04.99 > /System/Library/Frameworks/JavaVM.framework/Home/bin/java -Xms1G -Xmx1G > -Djava.util.logging.config.file=logging.properties > -Dcom.sun.management.jmxremote > -Djava.io.tmpdir=/opt/FUSE/AMQ/apache-activemq-5.8.0/tmp > -Dactivemq.classpath=/opt/FUSE/AMQ/apache-activemq-5.8.0/conf; > -Dactivemq.home=/opt/FUSE/AMQ/apache-activemq-5.8.0 > -Dactivemq.base=/opt/FUSE/AMQ/apache-activemq-5.8.0 > -Dactivemq.conf=/opt/FUSE/AMQ/apache-activemq-5.8.0/conf > -Dactivemq.data=/opt/FUSE/AMQ/apache-activemq-5.8.0/data -jar > /opt/FUSE/AMQ/apache-activemq-5.8.0/bin/activemq.jar start > > There are multiple lines of output, I want it to output the startup > path+script only. I mean, if I type "/apache-activemq-5.9.0/bin/activemq > start" , then the output should be as following: > 1063855181 71497 71476 0 0:00.38 ttys015 0:04.99 > /apache-activemq-5.9.0/bin/activemq . > No more , no less. Can I do that? > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Can-I-control-the-output-of-command-ps-ef-grep-activemq-tp4674296p4674410.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen