× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



That is how I like to do it too.. put everything in a shell script so you
don't have to muck around too much with qshell.

On Wed, Mar 18, 2020 at 11:00 AM Bryan Dietz <bdietz400@xxxxxxxxx> wrote:

you might want to put the command in a shell scrip and run that from CL.
make sure the PATH is correctly set in the script.

Bryan

Justin Taylor wrote on 3/18/2020 11:43 AM:
I'm having trouble running ActiveMQ from a CL command. It starts and
runs fine, but the PID is blank. The blank PID prevents me from stopping
ActiveMQ. I don't have this problem when I start ActiveMQ from a shell.

From a shell:
-bash-4.4$ /QOpenSys/pkgs/bin/activemq start
INFO: Loading '/QOpenSys/pkgs/lib/activemq/bin/env'
INFO: Using java '/QOpenSys/usr/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and
log4j.properties to get details
INFO: pidfile created : '/QOpenSys/pkgs/lib/activemq/data/activemq.pid'
(pid '38926')
-bash-4.4$

From CL the output is exactly the same except for line with the PID:
INFO: pidfile created : '/QOpenSys/pkgs/lib/activemq/data/activemq.pid'
(pid '')

Here's the CL command (using the IBM recommended method to run a PASE
program):
QSH CMD('/QOpenSys/usr/bin/sh -c "/QOpenSys/pkgs/bin/activemq start"')


Anyone have any suggestions?

TIA


--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.