<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
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>
<div class="moz-signature"><br>
Joan Sanchez<br>
Aljex Software, Inc.<br>
(732) 357-8700 x 166<br>
<a href="mailto:joan@aljex.com">joan@aljex.com</a><br>
<img src="http://www.aljex.com/images/Aljex-logo-signature.jpg"
alt="Aljex Signature" width="140"><br>
<br>
</div>
<div class="moz-cite-prefix">On 10/3/2017 4:47 PM, scooter6--- via
Filepro-list wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CADpQzqMXxKRR4qLQzdfzAht3F1O271kyPd_MEzTQ9C1AsXnQzw@mail.gmail.com">
<pre wrap="">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)
I then passed to msgbox "value is"<{aa{ab{aa which properly
returned "CLIENT NAME" with the quotes...........
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
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....
On Tue, Oct 3, 2017 at 1:52 PM, Fairlight via Filepro-list <
<a class="moz-txt-link-abbreviated" href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Another thing to keep in mind is which quotes you need. You only need
double quotes if 1) the argument will need shell variable interpolation, or
2) the string will contain other single quotes, such as apostrophes.
If you can get away with single quotes, it becomes simpler still, since you
won't need to escape them.
As far as not working, I'd stuff everything into a variable, then msgbox it
so you can see exactly what is being passed to system().
m->
On Tue, Oct 03, 2017 at 01:45:02PM -0400, <a class="moz-txt-link-abbreviated" href="mailto:scooter6@gmail.com">scooter6@gmail.com</a> thus spoke:
</pre>
<blockquote type="cite">
<pre wrap=""> Hmm..not how I would have ever thought to do that... currently I pass
 <aa<ab<ac, etc......I would have assumed then I would have neededÂ
<"\"{ac{"\"   ? But that didn't work...
I'll give this a try....thanks Mark
On Tue, Oct 3, 2017 at 1:06 PM, Fairlight via Filepro-list
<a class="moz-txt-link-rfc2396E" href="mailto:[1]filepro-list@lists.celestial.com"><[1]filepro-list@lists.celestial.com></a> wrote:
aa = "/path/to/command" < "arg1" < "\"arg2 with spaces\"" < "arg3"
system aa
mark->
On Tue, Oct 03, 2017 at 12:56:39PM -0400, scooter6--- via
Filepro-list thus spoke:
> I have a process that triggers an email at the end and I pass
</pre>
</blockquote>
<pre wrap="">several
</pre>
<blockquote type="cite">
<pre wrap=""> > variables to my shell script
> All of these parameters are short and contain no spaces....
>
> How do I character escape a string I want to send my script that
would have
> spaces in it?
> Meaning how would I send literal " (quotes) around a longer variable
that
> has spaces in it?
>
>
> thanks
>
> Scott
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <[2]<a class="moz-txt-link-freetext" href="http://mailman.celestial.com/pipermail/filepro-list/">http://mailman.celestial.com/pipermail/filepro-list/</a>
attachments/20171003/4e49eb59/attachment.html>
> _______________________________________________
> Filepro-list mailing list
> [<a class="moz-txt-link-abbreviated" href="mailto:3]Filepro-list@lists.celestial.com">3]Filepro-list@lists.celestial.com</a>
> Subscribe/Unsubscribe/Subscription Changes
> [4]<a class="moz-txt-link-freetext" href="http://mailman.celestial.com/mailman/listinfo/filepro-list">http://mailman.celestial.com/mailman/listinfo/filepro-list</a>
>
--
Audio panton, cogito singularis.
_______________________________________________
Filepro-list mailing list
[<a class="moz-txt-link-abbreviated" href="mailto:5]Filepro-list@lists.celestial.com">5]Filepro-list@lists.celestial.com</a>
Subscribe/Unsubscribe/Subscription Changes
[6]<a class="moz-txt-link-freetext" href="http://mailman.celestial.com/mailman/listinfo/filepro-list">http://mailman.celestial.com/mailman/listinfo/filepro-list</a>
References
1. <a class="moz-txt-link-freetext" href="mailto:filepro-list@lists.celestial.com">mailto:filepro-list@lists.celestial.com</a>
2. <a class="moz-txt-link-freetext" href="http://mailman.celestial.com/pipermail/filepro-list/">http://mailman.celestial.com/pipermail/filepro-list/</a>
</pre>
</blockquote>
<pre wrap="">attachments/20171003/4e49eb59/attachment.html
</pre>
<blockquote type="cite">
<pre wrap=""> 3. <a class="moz-txt-link-freetext" href="mailto:Filepro-list@lists.celestial.com">mailto:Filepro-list@lists.celestial.com</a>
4. <a class="moz-txt-link-freetext" href="http://mailman.celestial.com/mailman/listinfo/filepro-list">http://mailman.celestial.com/mailman/listinfo/filepro-list</a>
5. <a class="moz-txt-link-freetext" href="mailto:Filepro-list@lists.celestial.com">mailto:Filepro-list@lists.celestial.com</a>
6. <a class="moz-txt-link-freetext" href="http://mailman.celestial.com/mailman/listinfo/filepro-list">http://mailman.celestial.com/mailman/listinfo/filepro-list</a>
</pre>
</blockquote>
<pre wrap="">
--
Audio panton, cogito singularis.
_______________________________________________
Filepro-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a>
Subscribe/Unsubscribe/Subscription Changes
<a class="moz-txt-link-freetext" href="http://mailman.celestial.com/mailman/listinfo/filepro-list">http://mailman.celestial.com/mailman/listinfo/filepro-list</a>
</pre>
</blockquote>
<pre wrap="">-------------- next part --------------
An HTML attachment was scrubbed...
URL: <a class="moz-txt-link-rfc2396E" href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20171003/155d7589/attachment.html"><http://mailman.celestial.com/pipermail/filepro-list/attachments/20171003/155d7589/attachment.html></a>
_______________________________________________
Filepro-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a>
Subscribe/Unsubscribe/Subscription Changes
<a class="moz-txt-link-freetext" href="http://mailman.celestial.com/mailman/listinfo/filepro-list">http://mailman.celestial.com/mailman/listinfo/filepro-list</a>
</pre>
</blockquote>
<br>
</body>
</html>