Quoting Perry Hoekstra (dutchman at uswest.net):
> Hello all,
> 
> I have a question concerning calling a shell script from Java through 
> the exec method.  My problem is passing multiple values as a single 
> variable.  Example
> 
> Process t_process = t_runtime.exec("webcopy 'file1.html file2.html'");
> 
> I want both files sent through to the $1 arg in my webcopy shell script. 
>   However, when webcopy is invoked, file1.html is passed through the $1 
> arg and file2.html is passed in the $2 arg because of the space.  I have 
> tried both single and double quotes.  Is there any way to pass a space 
> delimited string as a single arguement?
> 

Process t_process = t_runtime.exec("webcopy 'file1.html\ file2.html'");

Escaping the space?

-- 
Bob Tanner <tanner at real-time.com>       | Phone : (952)943-8700
http://www.mn-linux.org                 | Fax   : (952)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9