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



Qshell gurus,

I am running a script that has the following commands;

cd $3
jar cfM $2 $1

i am using the following CL command to execute the script;

QSH CMD(&COMMAND)

The variable command contains this value;

/QShell/scriptname.qsh "File_Name.txt" "/ftp/Path Name/File_Name.txt.zip"
"/tmp"

The intent is that the script will change the directory to "/tmp" and then
the jar utility will place "File_Name.txt" into a compressed archive file
called "File_Name.txt.zip" in the subdirectory of "/ftp" called "/Path
Name".

What I get is a archive file named "Path" in the subdirectory "/ftp".

Question is - how can I get the jar command in the script to recognize that
"/ftp/Path Name" is a path, ignoring the white space? I am trying to get
the utliity that I am writing to support path names that may include those
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.

Thanks!

Jim

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.