Have you considered using jps -l -m instead of the ps command? Regards,
Torsten Mielke tmie...@redhat.com tmielke.blogspot.com On Nov 14, 2013, at 01:23 AM, HellKnight 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.