Scott;
Scott - Thanks for your post!
No. It creates a zip file of everything that contains a dot in the
stmimag directory. That's what *.* means... anything that contains a
dot. Just as *a* means anything that contains an "a", and *b* means
anything that contains a "b", *.* means anything that contains a "."
If he wanted everything, he needed to change the *.* to just *
You are correct! I could have just ended with a * and got the same
results since I was populating the folder with known files. I knew that
every file in the folder would have the Basic DOS name structure
xxxxxxxx.xxx. I guess old DOS and Windows habits dictated the syntax.
Also, I'm skeptical about the "cfM". Shouldn't the filename follow
the
"f"??? Isn't that the point of the "f" to denote that it's followed
by
the filename?
The order for the parms does not seem to make a difference for this
particular grouping of parms. As long as, all the parms you need are
specified before the filename. The M says not to create a manifest.
This allows me to zip up so many images within a single zip file.
Without the "M", the command will fail when trying to biuld the manifest
of objects within the zip file.
The directory names are also a bit suspect. You don't want to zip
all
files in the same directory name that you're saving the ZIP file to,
do
you? You'd end up including the ZIP file in the files you're backing
up... Of course, that would only be the case if the CWD was /,
which
it may not be, maybe he has two separate directories with the same
name
in different places. That would make sense, since a relative path is
used in one place, and an absolute path in the other.
The JAR command is smart enough to not include the file it is creating
into the STMIMAGES.ZIP file. Prior to anything else in the process I
delete all the objects in the folder. Next, I load the new image
objects into the folder. Finally, I zip all the objects in the folder
prior to the FTP of the zipped file.
Too bad the original poster gave so little information about the
situation. I could spend all afternoon in conjecture.
I do apologize for the lack of info in the original post. It was 4:30am
and I just was not thinking clearly enough to provide better detail in
the original post. I think I just wrote down what I was questioning at
the time without all the info that brought me to that point. I looked
back on the original post and agree it would be hard to respond without
a little more meat included in the description.
Finally, in another post, I gave a full account of the events and some
interesting perceptions (right or wrong).
Again thanks for your post!
Charlie Randall
"When you have vision it affects your attitude. Your attitude is
optimistic rather than pessimistic." by Charles R. Swindoll
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[
mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Friday, May 18, 2007 1:50 PM
To: Midrange Systems Technical Discussion
Subject: Re: Qshell JAR Command
That command just creates a zip file of everything within the stmimag
directory.
No. It creates a zip file of everything that contains a dot in the
stmimag directory. That's what *.* means... anything that contains a
dot. Just as *a* means anything that contains an "a", and *b* means
anything that contains a "b", *.* means anything that contains a "."
If he wanted everything, he needed to change the *.* to just *
jar cfM /stmimag/stmimages.zip -C stmimag/*
Also, I'm skeptical about the "cfM". Shouldn't the filename follow the
"f"??? Isn't that the point of the "f" to denote that it's followed by
the filename?
So it should be:
jar cMf /stmimag/stmimages.zip -C stmimag/*
The directory names are also a bit suspect. You don't want to zip all
files in the same directory name that you're saving the ZIP file to, do
you? You'd end up including the ZIP file in the files you're backing
up... Of course, that would only be the case if the CWD was /, which
it may not be, maybe he has two separate directories with the same name
in different places. That would make sense, since a relative path is
used in one place, and an absolute path in the other.
Too bad the original poster gave so little information about the
situation. I could spend all afternoon in conjecture.
As an Amazon Associate we earn from qualifying purchases.