On Fri, Jan 20, 2012 at 12:55 PM, James Lampert
<jamesl@xxxxxxxxxxxxxxxxx> wrote:
I'm looking for a way to programmatically inject a
change into a STMF (a Tomcat configuration file)
from a CL program. Is there anything around
that will do that?

Plenty. One is to use the venerable sed utility from Qshell or PASE.
Here's an article (on a slightly different topic, but the stuff on sed
still applies):

http://www.itjungle.com/fhg/fhg083006-story02.html

You can of course put the Qshell command into a CL.

For very simple changes, this is the easiest and quickest I can think
of (unless REXX can do it, in which case REXX would perhaps be even
better).

For things that are more complicated, it may be easier to write
another program in another language (I will plug iSeries Python once
again, as it has ludicrously easy access to IFS stream files and
Perl-like regex support) and then call that from your CL.

John

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.