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



i tested it on v5r2 and the -D parameter will cause ajar to just skip any 
directory and all files below it.

if you have for example the following dir structure:

myfile.txt
mydir
mydir/myfile-1.txt
mydir/myfile-2.txt

and if you use the -D parameter ajar will include the myfile.txt but will skip 
mydir and all files below it.

so i think you can't do it in just one step.

perhaps you can list the files with the find command and copy the files to some 
temp dir. the use ajar to zip 'em.

<code>
ALL_FILES=$(find $1)

for i in $ALL_FILES;
do
        cp $i /tmp/testing
done;

ajar -c myfile.jar /tmp/testing/*
</code>

perhaps this code will help you.

mk

> -----Original Message-----
> From: midrange-l-bounces@xxxxxxxxxxxx 
> [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of 
> Mike_Bramley@xxxxxxxxxxx
> Sent: Friday, November 11, 2005 12:06 PM
> To: midrange-l@xxxxxxxxxxxx
> Subject: qshell ajar utility jar utility
> 
> 
> apologies if you consider this too off-forum. I send some 
> files off i5 as
> zip files using the qshell jar utility. I need to send a zip file that
> contains no path information for the zipped file. To this end 
> I thought
> that the qshell ajar utility with parameter -D or --nodirs 
> might be the
> answer. However when I open the file using WinZip I still see 
> a path. Any
> thoughts?
> 
> Regards from The Marches
> --
> This message is intended for the use of the addressee and may contain
> information that is privileged and/or confidential. If you are not the
> intended recipient, you are hereby notified that any dissemination,
> distribution or copying of the information contained in this 
> message is
> strictly unauthorized and prohibited. If you have received 
> this message in
> error, please notify the sender by reply e-mail and delete 
> the message from
> your system. Opinions, conclusions, or other statements in 
> this message
> which do not relate to the business of Coty Inc.,its subsidiaries or
> affiliates, are neither given nor endorsed by Coty Inc.
> 
> -- 
> 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 ...


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.