<div dir="ltr"><div>Ok, so what I did was create two variables.....one is aa(1,*)="\"" the other is ab(30,allup)=cli(2) (which cli(2) is a 30,allup field from our client file)</div><div>I then passed to msgbox "value is"<{aa{ab{aa which properly returned "CLIENT NAME" with the quotes...........</div><div>However, when I pass this same to my shell script, it no longer errors, but it only shows the value UP UNTIL the first space it encounters.........so in this example, it just returns CLIENT</div><div>I'm wanting to take the client name variable and have it included in the subject line of an email that I send @done in processing.....everything else works great except this part....</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 3, 2017 at 1:52 PM, Fairlight via Filepro-list <span dir="ltr"><<a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.celestial.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Another thing to keep in mind is which quotes you need. You only need<br>
double quotes if 1) the argument will need shell variable interpolation, or<br>
2) the string will contain other single quotes, such as apostrophes.<br>
<br>
If you can get away with single quotes, it becomes simpler still, since you<br>
won't need to escape them.<br>
<br>
As far as not working, I'd stuff everything into a variable, then msgbox it<br>
so you can see exactly what is being passed to system().<br>
<br>
m-><br>
<br>
On Tue, Oct 03, 2017 at 01:45:02PM -0400, <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a> thus spoke:<br>
<span>> Hmm..not how I would have ever thought to do that... currently I pass<br>
</span>> Â <aa<ab<ac, etc......I would have assumed then I would have neededÂ<br>
> <"\"{ac{"\"   ? But that didn't work...<br>
<span>> I'll give this a try....thanks Mark<br>
><br>
> On Tue, Oct 3, 2017 at 1:06 PM, Fairlight via Filepro-list<br>
</span><span>> <[1]<a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.<wbr>celestial.com</a>> wrote:<br>
><br>
> aa = "/path/to/command" < "arg1" < "\"arg2 with spaces\"" < "arg3"<br>
> system aa<br>
> mark-><br>
> On Tue, Oct 03, 2017 at 12:56:39PM -0400, scooter6--- via<br>
> Filepro-list thus spoke:<br>
><br>
> > I have a process that triggers an email at the end and I pass several<br>
> > variables to my shell script<br>
</span>> > All of these parameters are short and contain no spaces....<br>
<span>> ><br>
> > How do I character escape a string I want to send my script that<br>
> would have<br>
> > spaces in it?<br>
> > Meaning how would I send literal " (quotes) around a longer variable<br>
> that<br>
> > has spaces in it?<br>
> ><br>
> ><br>
> > thanks<br>
> ><br>
> > Scott<br>
><br>
> > -------------- next part --------------<br>
> > An HTML attachment was scrubbed...<br>
</span>> > URL: <[2]<a href="http://mailman.celestial.com/pipermail/filepro-list/" target="_blank" rel="noreferrer">http://mailman.celestial.<wbr>com/pipermail/filepro-list/</a><br>
> attachments/20171003/4e49eb59/<wbr>attachment.html><br>
> > ______________________________<wbr>_________________<br>
> > Filepro-list mailing list<br>
> > [3]<a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.<wbr>celestial.com</a><br>
> > Subscribe/Unsubscribe/<wbr>Subscription Changes<br>
> > [4]<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank" rel="noreferrer">http://mailman.celestial.<wbr>com/mailman/listinfo/filepro-<wbr>list</a><br>
<span>> ><br>
> --<br>
> Audio panton, cogito singularis.<br>
> ______________________________<wbr>_________________<br>
> Filepro-list mailing list<br>
</span>> [5]<a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.<wbr>celestial.com</a><br>
> Subscribe/Unsubscribe/<wbr>Subscription Changes<br>
> [6]<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank" rel="noreferrer">http://mailman.celestial.<wbr>com/mailman/listinfo/filepro-<wbr>list</a><br>
><br>
> References<br>
><br>
> 1. mailto:<a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.<wbr>celestial.com</a><br>
> 2. <a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20171003/4e49eb59/attachment.html" target="_blank" rel="noreferrer">http://mailman.celestial.com/<wbr>pipermail/filepro-list/<wbr>attachments/20171003/4e49eb59/<wbr>attachment.html</a><br>
> 3. mailto:<a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.<wbr>celestial.com</a><br>
> 4. <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank" rel="noreferrer">http://mailman.celestial.com/<wbr>mailman/listinfo/filepro-list</a><br>
> 5. mailto:<a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.<wbr>celestial.com</a><br>
> 6. <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank" rel="noreferrer">http://mailman.celestial.com/<wbr>mailman/listinfo/filepro-list</a><br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Audio panton, cogito singularis.<br>
______________________________<wbr>_________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.<wbr>com</a><br>
Subscribe/Unsubscribe/<wbr>Subscription Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank" rel="noreferrer">http://mailman.celestial.com/<wbr>mailman/listinfo/filepro-list</a><br>
</div></div></blockquote></div><br></div>