|
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
--
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 mailing list archive is Copyright 1997-2025 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.