<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">ok, I may have accidentally not included all the code to make myself clear.  my apologies.<div class=""><br class=""></div><div class=""><div class=""><font face="Monaco" size="4" class="">::html_file="/www/"{5{"/"{1{".html":</font></div><div class=""><font face="Monaco" size="4" class="">:exists(html_file) eq "0":unix="cat /www/template.html | sed \'s/XXXXX/"{1{"/g\' >"<html_file:</font></div><div class=""><font face="Monaco" size="4" class="">::msgbox unix:</font></div><div class=""><font face="Monaco" size="4" class="">:exists(html_file) eq "0":system noredraw unix:</font></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">The msgbox command is just there for troubleshooting.  when i test it, I get the following in the msgbox:</div><div class=""><br class=""></div><div class=""><font size="4" class="">cat /www/template.html | sed 's/XXXXX/wcpc1/g' > /www/wcc/wcpc1.html</font></div><div class=""><br class=""></div><div class="">Copying and pasting the output of the msgbox does work properly to achieve the intended goal.  however, the command when run from the system command, results in an empty destination file.  that tells me that system command is processing the command all the way to the end, and is getting tripped up on the single quote (or possibly the pipe) somewhere in the middle.  </div><div class=""><br class=""></div><div class="">so my question again is there a way to send such a command and have the filepro system command pass it to the system properly?  thank you very much, </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); " class=""><br class="Apple-interchange-newline">James Flanagan</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(0, 106, 227); " class=""><span style="text-decoration: underline; " class=""><a href="http://Flantec.com/" class="">Flantec.com</a></span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); min-height: 14px; " class=""><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(0, 106, 227); " class=""><span style="color: rgb(121, 121, 121); " class="">email:<span class="Apple-tab-span" style="white-space: pre; ">      </span><a href="mailto:James@Flantec.com" class=""><span style="text-decoration: underline; color: rgb(0, 106, 227); " class="">James@Flantec.com</span></a></span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); " class="">mobile:<span class="Apple-tab-span" style="white-space: pre; ">      </span>760-458-8498</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); " class="">home:<span class="Apple-converted-space"> </span><span class="Apple-tab-span" style="white-space: pre; ">       </span>219-221-6219</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(0, 106, 227); " class=""><span style="color: rgb(121, 121, 121); " class="">text:<span class="Apple-tab-span" style="white-space: pre; ">           </span><a href="mailto:7604588498@txt.att.net" class=""><span style="text-decoration: underline; color: rgb(0, 106, 227); " class="">7604588498@txt.att.net</span></a></span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); min-height: 14px; " class=""><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); " class="">aim:<span class="Apple-tab-span" style="white-space: pre; ">              </span>Flantec</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); " class="">oovoo:<span class="Apple-tab-span" style="white-space: pre; ">  </span>Flantec</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); " class="">Skype:<span class="Apple-tab-span" style="white-space: pre; ">  </span>Flantec</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(0, 106, 227); " class=""><span style="color: rgb(121, 121, 121); " class="">ichat:<span class="Apple-tab-span" style="white-space: pre; ">       </span><a href="mailto:Flantec@mac.com" class=""><span style="text-decoration: underline; color: rgb(0, 106, 227); " class="">Flantec@mac.com</span></a></span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); min-height: 14px; " class=""><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); " class="">home:<span class="Apple-tab-span" style="white-space: pre; ">   </span>1901 Cidermill Road</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); " class=""><span class="Apple-tab-span" style="white-space: pre; ">            </span>Michigan City, IN 46360</div></span>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Dec 6, 2014, at 2:44 PM, Kenneth Brody <<a href="mailto:kenbrody@spamcop.net" class="">kenbrody@spamcop.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">On 12/6/2014 2:45 PM, Bill Campbell wrote:<br class=""><blockquote type="cite" class="">On Fri, Dec 05, 2014, James Flanagan wrote:<br class=""><blockquote type="cite" class="">FreeBSD 9.2<br class="">Filepro 5.7.0.03<br class=""></blockquote></blockquote>[...]<br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">:exists(html_file) eq "0":unix="cat /www/template.html | sed \'s/XXXXX/"{1{"/g\' >"<html_file:<br class="">::msgbox unix:<br class=""></blockquote></blockquote><br class="">You don't say what doesn't work.  (I assume you actually have a SYSTEM command somewhere?)<br class=""><br class=""><blockquote type="cite" class="">That script is a good example of the useless use of cat, and<br class="">wouldn't work in any case with a < redirect and a pipe.<br class=""></blockquote><br class="">Nit:<br class=""><br class="">   There is no "< redirect".  The "<" is the filePro concatenate-and-leave-one-space operator.<br class=""><br class="">Dropping the useless-cat, this should work (though I'm not on a *nix system at the moment to test it):<br class=""><br class="">    unix = "sed 's/XXXXX/" { 1 { "/g' </www/template.html >" { html_file<br class=""><br class="">Again, the OP doesn't explain what "doesn't work".<br class=""><br class=""><blockquote type="cite" class="">I would put your sed into a script then call the script avoiding<br class="">any quoting issues.<br class=""></blockquote><br class=""><br class="">-- <br class="">Kenneth Brody<br class="">_______________________________________________<br class="">Filepro-list mailing list<br class=""><a href="mailto:Filepro-list@lists.celestial.com" class="">Filepro-list@lists.celestial.com</a><br class="">Subscribe/Unsubscribe/Subscription Changes<br class="">http://mailman.celestial.com/mailman/listinfo/filepro-list<br class=""></div></blockquote></div><br class=""></div></body></html>