<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hi folks.<br></div><div><br></div><div>The following code is working very well, but when an Error occurs, I would like it to ignore the error and continue.<br></div><div><br></div><div><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245);"><div>Transcript clear.<br></div><div>[(WikitextModule allSubclasses select:[:module  |  (module pagetitle indexOf:$/ ifAbsent:[0]) > 0])<br></div><div>do:[:m | |ss f d cmd shell content  ios|<br></div><div>ss := m pagetitle squeakToUtf8 findBetweenSubStrs: '/'.<br></div><div>d := ss collect:[:each | each] from: 1 to: (ss size -1).<br></div><div>"handle Sandbox and User: here"<br></div><div>((d at:1) = 'Sandbox') | ((d at:1) beginsWith:'User:')<br></div><div>ifTrue:[]<br></div><div>ifFalse:[<br></div><div>d := d inject:'' into:[:a :b | a, '/',  b].<br></div><div>f := ('lua',d, '/', ss last, '.lua') squeakToUtf8  .    "ios writes to shared by default"<br></div><div>cmd := 'mkdir -p shared/lua', d.   "commandshell writes to squeak root directory, so we prepende 'shared' to it"<br></div><div>Transcript show: (m name), ' : ', cmd; cr.<br></div><div><b>shell := PipeableOSProcess bash. </b><b><br></b></div><div><b>shell pipeFromOutput reader setNonBlocking. </b><b><br></b></div><div><b>shell exec: cmd.</b><b><br></b></div><div><b>(Delay forMilliseconds: 400) wait. </b><b><br></b></div><div><b>Transcript show: shell upToEnd ; cr.</b><b><br></b></div><div><b>shell close. </b><br></div><div>content := m lua squeakToUtf8.<br></div><div>ios := FileStream newFileNamed: f.<br></div><div>ios isNil<br></div><div>ifFalse:[<br></div><div>content storeOn: ios.<br></div><div>ios close.<br></div><div>]].<br></div><div>]] ifError:[:x :y | Transcript show: x;cr. y close. thisContext resume]<br></div></blockquote><div><br></div></div><div>The error is <br></div><div><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245);"><div>WikitextModule613405370 : mkdir -p shared/lua/Road_data/strings/USA/KY<br></div><div><br></div><div>Error: cannot create OS pipe<br></div></blockquote><div><br></div></div><div>I am assuming it is happening during the mkdir -p command during the shell sequence of code in bold above but that is not my question.<br></div><div>Although it could be happening in the ios portion. </div><div><br></div><div>My question is how, after the Error is thrown do I continue the 'do:[:m...] block?<br></div><div><br></div><div>thanks for your time.</div><div><br></div></div><br></body></html>