<div dir="ltr"><div>I figured it out -- it was my script that was sending the email -- thanks for all that replied.....</div><div><br></div><div>Scott</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 3, 2017 at 6:11 PM, Joan Sanchez 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">It also depends on how you are referring to those arguments within your script. Maybe you are using $@ (without quotes) when you need to use "$@" (with quotes).<br>
<br>
Joan Sanchez<br>
Aljex Software, Inc.<br>
<a href="tel:%28732%29%20357-8700%20x%20166" target="_blank" value="+17323578700">(732) 357-8700 x 166</a><br>
<a href="mailto:joan@aljex.com" target="_blank">joan@aljex.com</a> <mailto:<a href="mailto:joan@aljex.com" target="_blank">joan@aljex.com</a>><br>
Aljex Signature<div><div class="h5"><br>
<br>
On 10/3/2017 4:47 PM, scooter6--- via Filepro-list wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Ok, so what I did was create two variables.....one is aa(1,*)="\""<br>
the other is ab(30,allup)=cli(2) (which cli(2) is a 30,allup field<br>
from our client file)<br>
I then passed to msgbox "value is"<{aa{ab{aa which properly<br>
returned "CLIENT NAME" with the quotes...........<br>
However, when I pass this same to my shell script, it no longer errors, but<br>
it only shows the value UP UNTIL the first space it encounters.........so<br>
in this example, it just returns CLIENT<br>
I'm wanting to take the client name variable and have it included in the<br>
subject line of an email that I send @done in processing.....everything<br>
else works great except this part....<br>
<br>
<br>
<br>
On Tue, Oct 3, 2017 at 1:52 PM, Fairlight via Filepro-list <<br>
<a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.celestial.c<wbr>om</a>> wrote:<br>
<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" target="_blank">scooter6@gmail.com</a> thus spoke:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hmm..not how I would have ever thought to do that... currently I pass<br>
 <aa<ab<ac, etc......I would have assumed then I would have neededÂ<br>
<"\"{ac{"\"   ? But that didn't work...<br>
I'll give this a try....thanks Mark<br>
<br>
On Tue, Oct 3, 2017 at 1:06 PM, Fairlight via Filepro-list<br>
<[1]<a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.celesti<wbr>al.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<br>
</blockquote>
several<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> variables to my shell script<br>
> All of these parameters are short and contain no spaces....<br>
><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>
> URL: <[2]<a href="http://mailman.celestial.com/pipermail/filepro-list/" target="_blank" rel="noreferrer">http://mailman.celestial.c<wbr>om/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" target="_blank">Filepro-list@lists.celestia<wbr>l.com</a><br>
> Subscribe/Unsubscribe/Subscrip<wbr>tion Changes<br>
> [4]<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank" rel="noreferrer">http://mailman.celestial.co<wbr>m/mailman/listinfo/filepro-lis<wbr>t</a><br>
><br>
--<br>
Audio panton, cogito singularis.<br>
______________________________<wbr>_________________<br>
Filepro-list mailing list<br>
[5]<a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.celestia<wbr>l.com</a><br>
Subscribe/Unsubscribe/Subscrip<wbr>tion Changes<br>
[6]<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank" rel="noreferrer">http://mailman.celestial.co<wbr>m/mailman/listinfo/filepro-lis<wbr>t</a><br>
<br>
References<br>
<br>
1. mailto:<a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.cele<wbr>stial.com</a><br>
2. <a href="http://mailman.celestial.com/pipermail/filepro-list/" target="_blank" rel="noreferrer">http://mailman.celestial.com/p<wbr>ipermail/filepro-list/</a><br>
</blockquote>
attachments/20171003/4e49eb59/<wbr>attachment.html<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
3. mailto:<a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.cele<wbr>stial.com</a><br>
4. <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank" rel="noreferrer">http://mailman.celestial.com/m<wbr>ailman/listinfo/filepro-list</a><br>
5. mailto:<a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.cele<wbr>stial.com</a><br>
6. <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank" rel="noreferrer">http://mailman.celestial.com/m<wbr>ailman/listinfo/filepro-list</a><br>
</blockquote>
--<br>
Audio panton, cogito singularis.<br>
______________________________<wbr>_________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.celestial.c<wbr>om</a><br>
Subscribe/Unsubscribe/Subscrip<wbr>tion Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank" rel="noreferrer">http://mailman.celestial.com/m<wbr>ailman/listinfo/filepro-list</a><br>
<br>
</blockquote>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br></div></div>
URL: <<a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20171003/155d7589/attachment.html" target="_blank" rel="noreferrer">http://mailman.celestial.com/<wbr>pipermail/filepro-list/attachm<wbr>ents/20171003/155d7589/attachm<wbr>ent.html</a>><span><br>
______________________________<wbr>_________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.celestial.c<wbr>om</a><br>
Subscribe/Unsubscribe/Subscrip<wbr>tion Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank" rel="noreferrer">http://mailman.celestial.com/m<wbr>ailman/listinfo/filepro-list</a><br>
</span></blockquote>
<br><span>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br></span>
URL: <<a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20171003/e7cb550c/attachment.html" target="_blank" rel="noreferrer">http://mailman.celestial.com/<wbr>pipermail/filepro-list/attachm<wbr>ents/20171003/e7cb550c/attachm<wbr>ent.html</a>><div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.celestial.c<wbr>om</a><br>
Subscribe/Unsubscribe/Subscrip<wbr>tion Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank" rel="noreferrer">http://mailman.celestial.com/m<wbr>ailman/listinfo/filepro-list</a><br>
</div></div></blockquote></div><br></div>