Jim Essinger wrote:

jar cfM $2 $1

white spaces. Any thought or suggestions? I have tried no quotes, single
quotes and double quotes for the three parms being passed to the script.

Jim:

Did you try:

jar cfM "$2" $1

There are behavioral differences between single- and double-quote marks. I don't know if that will work, but it's the first thing that came to mind. If you try to imagine what the jar command would expand to once the parameter substitution happens, maybe it'll make sense.

In your example, I wouldn't be surprised if you're getting:

jar cfM /ftp/Path Name/File_Name.txt.zip /tmp

And that looks like three parms to me. They seem to match your description of the behavior.

Tom Liotta


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.