<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=626113318-13092007>Hello,</SPAN></FONT></DIV><FONT><SPAN
class=626113318-13092007>
<DIV><BR><FONT face=Arial size=2>I'm just getting started with Swift, and trying
to program a fairly trivial sample to get started.<BR></FONT></DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial size=2>My swiftscript fails
with the message:</FONT></SPAN></DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial size=2>"Execution
failed:<BR> grep started<BR>Attempted
to close nonexistent channel buffers"</FONT></SPAN></DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial size=2>Can anyone point me
to the documentation that describes such errors? This is referring to a
spot in my code that is executing a very vanilla grep operation. My input
file is just 14 lines long, and this error consistently happens towards the end
of the overall workflow execution.</FONT></SPAN></DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial size=2>The
code:</FONT></SPAN></DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial size=2>type blog
{<BR> string name;<BR> string
feedURL;<BR>}</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial size=2>type file {
}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial size=2>(file headlines)
getHeadlines(blog b) {<BR> app
{<BR>
feeder @b.feedURL <A
href="mailto:stdout=@filename(headlines">stdout=@filename(headlines</A>);<BR>
}<BR>}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial size=2>(file results[])
processBlogs(blog blogs[]) {</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial
size=2> foreach blog el, index in
blogs
{<BR>
results[index] = getHeadlines( el )
;<BR> }<BR>}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial size=2>(string matches)
findSingleMatch(file input, string searchTerm)
{<BR> app
{<BR>
grep "-i" searchTerm @filename(input) <A
href="mailto:stdout=@matches">stdout=@matches</A>;<BR>
}<BR>}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial size=2>(file matches)
findMatches(file inputs[], string searchTerm)
{<BR> string
final;</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial
size=2> foreach input, index in inputs
{<BR>
string intermed = findSingleMatch(input,
searchTerm);<BR>
final = strcat(final, intermed);<BR>
}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial
size=2> matches =
dumpString(final);<BR>}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial size=2>(int retVal)
debug(string m) {<BR> app
{<BR>
echo m ;<BR>
}<BR>}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial size=2>(file t)
dumpString(string m) {<BR> app
{<BR> echo m <A
href="mailto:stdout=@filename(t">stdout=@filename(t</A>);<BR>
}<BR>}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial size=2>blog blogs[]
<csv_mapper; file="blogs.csv", delim=",", header="true">;<BR>file output[]
<simple_mapper; prefix="output/blogHeadlines",suffix=".txt">;<BR>file
final <simple_mapper; prefix="output/result",
suffix=".txt">;</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=626113318-13092007><FONT face=Arial size=2>output =
processBlogs(blogs);<BR>final = findMatches(output, "ARG
0");<BR></FONT></SPAN></DIV></SPAN></FONT>
<DIV><FONT face=Arial size=2><SPAN class=626113318-13092007>Any help would be
greatly appreciated.</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2>--</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>M. David
Allen</FONT></DIV></BODY></HTML>