A long line in a qsh script can be escaped so it continues on the next
line with a "\" character like so:

java \

-Djavax.xml.transform.TransformerFactory="net.sf.saxon.TransformerFactoryImpl"
\
-Djava.awt.headless=true \
-Djava.util.logging.config.file=conf/LogConfig.properties
MyClassWithAMainMethod

Hope I answered the right question this time :)

Phil




David Gibbs <david@xxxxxxxxxxxx>
Sent by: java400-l-bounces@xxxxxxxxxxxx
23/10/2007 12:34 PM
Please respond to
Java Programming on and around the iSeries / AS400
<java400-l@xxxxxxxxxxxx>


To
Java Programming on and around the iSeries / AS400
<java400-l@xxxxxxxxxxxx>
cc

Subject
Re: How to redirect stderr and stdout of QSH into a java program






bill.blalock@xxxxxxxx wrote:
"Does a script processed by qsh have a limit on the length of a command?

If so what are the tricks to get around it? (continuation or whatever)"

I've run into limits on what the Windows 2000 command processor in terms

of length of the command. I was wondering what limits are on a qsh
command, particularly one built in a script.

Sorry, this I cannot answer.

Perhaps someone else has more experience in qshell?

david


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-2022 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.