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



Charlie,

The jar command isn't the problem, QSH is.

The QSh shell expands the *.* into a list of files before invoking the
jar command.  (That's why you're getting a message from QSH and not
JAR).



Try:

"jar cfM /tempdir/pdsimages.zip -C /stmimagp ."

Without the quotes of course, but the period is important.

Note: I think you'll need the tempdir that way your jar file doesn't get
zipped up into itself.

Taken from the following:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/jar.html

-C  dir
    Temporarily changes directories (cd dir) during execution of the jar
command while processing the following inputfiles argument. Its
operation is intended to be similar to the -C option of the UNIX tar
utility. For example:

        jar uf foo.jar -C classes . 

    would change to the classes directory and add to foo.jar all files
within the classes directory (without creating a classes directory in
the jar file), <snip>


HTH,


Charles Wilt
--
iSeries Systems Administrator / Developer
Mitsubishi Electric Automotive America
ph: 513-573-4343
fax: 513-398-1121
  

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx 
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Charlie Randall
Sent: Friday, January 05, 2007 11:46 AM
To: Midrange Systems Technical Discussion
Subject: QSH JAR Command Limit

I have a process set up to compress files in the IFS in order 
to FTP to
an external company.  This process currently runs 12 times a 
month.  We
are changing the process to only run once a month (which is a better
overall solution).  The only problem is in preliminary 
testing, the JAR
command used to compress the files now returns the following message
when attempting to compress the files.

$
jar cfM /stmimagp/pdsimages.zip/ stmimagp/*.*
qsh: 001-0085 Too many arguments specified on command.
$

The folder contains 95000+ files to compress.  Any thoughts 
on how I can
bypass this limitation?  Does anybody know what the JAR command object
limit is?

Charlie Randall
AAA Cooper Transportation


-- 
This is the Midrange Systems Technical Discussion 
(MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




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.