passing argument to os_process zip

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

passing argument to os_process zip

Anibal Escobar
HI, I'm on Lasso 8.5 and trying to do the following:

var('os' = OS_Process('/usr/bin/zip', array('-qr ', '"/my path/myfolder"','"/my path/myfolder"'));

or

var('os' = OS_Process('/usr/bin/zip', array('-qr ', '/my\\ path/myfolder','/my\\ path/myfolder'));

and neither work

var('os' = OS_Process('/usr/bin/zip', array('-qr ', '/mypath/myfolder','/mypath/myfolder'));

works - no spaces in arguments text - as does running and of these commands through the terminal.  How can I escape arguments that have spaces in them?

Thanks,
Anibal Escobar
646 502 8821





#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: passing argument to os_process zip

stevepiercy
Maybe try:

var('os' = OS_Process('/usr/bin/zip', array('-qr ', '/my\
path/myfolder', '/my\ path/myfolder'));

--steve


On 5/20/15 at 3:46 PM, [hidden email] (Anibal Escobar) pronounced:

>HI, I'm on Lasso 8.5 and trying to do the following:
>
>var('os' = OS_Process('/usr/bin/zip', array('-qr ', '"/my
>path/myfolder"','"/my path/myfolder"'));
>
>or
>var('os' = OS_Process('/usr/bin/zip', array('-qr ', '/my\\
>path/myfolder','/my\\ path/myfolder'));
>
>and neither work
>
>var('os' = OS_Process('/usr/bin/zip', array('-qr ', '/mypath/myfolder','/mypath/myfolder'));
>
>works - no spaces in arguments text - as does running and of
>these commands through the terminal.  How can I escape
>arguments that have spaces in them?
>
>Thanks,
>Anibal Escobar
>646 502 8821
>
>
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.StevePiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: passing argument to os_process zip

Anibal Escobar
Tried that also - didn't work.  Same error as the other ones - zip says "nothing to do"

Thanks,
Anibal Escobar
646 502 8821




On May 20, 2015, at 3:49 PM, Steve Piercy - Website Builder wrote:

> Maybe try:
>
> var('os' = OS_Process('/usr/bin/zip', array('-qr ', '/my\ path/myfolder', '/my\ path/myfolder'));
>
> --steve
>
>
> On 5/20/15 at 3:46 PM, [hidden email] (Anibal Escobar) pronounced:
>
>> HI, I'm on Lasso 8.5 and trying to do the following:
>>
>> var('os' = OS_Process('/usr/bin/zip', array('-qr ', '"/my path/myfolder"','"/my path/myfolder"'));
>>
>> or
>> var('os' = OS_Process('/usr/bin/zip', array('-qr ', '/my\\ path/myfolder','/my\\ path/myfolder'));
>>
>> and neither work
>>
>> var('os' = OS_Process('/usr/bin/zip', array('-qr ', '/mypath/myfolder','/mypath/myfolder'));
>>
>> works - no spaces in arguments text - as does running and of these commands through the terminal.  How can I escape arguments that have spaces in them?
>>
>> Thanks,
>> Anibal Escobar
>> 646 502 8821
>>
>>
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy              Website Builder              Soquel, CA
> <[hidden email]>               <http://www.StevePiercy.com/>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
> the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: passing argument to os_process zip

Kyle Jessup-2
In reply to this post by Anibal Escobar
Since you are already passing in a tokenized list of arguments, you should not need to do any escaping or quoting.

Try something like this:

OS_Process('/usr/bin/zip', array('-qr', '/my path/myfolder','/my path/myfolder'))

-Kyle

> On May 20, 2015, at 3:46 PM, Anibal Escobar <[hidden email]> wrote:
>
> HI, I'm on Lasso 8.5 and trying to do the following:
>
> var('os' = OS_Process('/usr/bin/zip', array('-qr ', '"/my path/myfolder"','"/my path/myfolder"'));
>
> or
>
> var('os' = OS_Process('/usr/bin/zip', array('-qr ', '/my\\ path/myfolder','/my\\ path/myfolder'));
>
> and neither work
>
> var('os' = OS_Process('/usr/bin/zip', array('-qr ', '/mypath/myfolder','/mypath/myfolder'));
>
> works - no spaces in arguments text - as does running and of these commands through the terminal.  How can I escape arguments that have spaces in them?
>
> Thanks,
> Anibal Escobar
> 646 502 8821
>
>
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: passing argument to os_process zip

Anibal Escobar
Yep, that did it!

Thanks,
Anibal Escobar
646 502 8821




On May 20, 2015, at 4:16 PM, Kyle Jessup wrote:

> Since you are already passing in a tokenized list of arguments, you should not need to do any escaping or quoting.
>
> Try something like this:
>
> OS_Process('/usr/bin/zip', array('-qr', '/my path/myfolder','/my path/myfolder'))
>
> -Kyle
>
>> On May 20, 2015, at 3:46 PM, Anibal Escobar <[hidden email]> wrote:
>>
>> HI, I'm on Lasso 8.5 and trying to do the following:
>>
>> var('os' = OS_Process('/usr/bin/zip', array('-qr ', '"/my path/myfolder"','"/my path/myfolder"'));
>>
>> or
>>
>> var('os' = OS_Process('/usr/bin/zip', array('-qr ', '/my\\ path/myfolder','/my\\ path/myfolder'));
>>
>> and neither work
>>
>> var('os' = OS_Process('/usr/bin/zip', array('-qr ', '/mypath/myfolder','/mypath/myfolder'));
>>
>> works - no spaces in arguments text - as does running and of these commands through the terminal.  How can I escape arguments that have spaces in them?
>>
>> Thanks,
>> Anibal Escobar
>> 646 502 8821
>>
>>
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>