<div style="font-family: Helvetica; font-size: 13px; ">Maybe put "-ex" into the shebang line?</div><div style="font-family: Helvetica; font-size: 13px; "><br></div><div style="font-family: Helvetica; font-size: 13px; ">E.g. #!/bin/dash -ex</div><div style="font-family: Helvetica; font-size: 13px; "><br></div><div style="font-family: Helvetica; font-size: 13px; ">From the manual:</div><div style="font-family: Helvetica; font-size: 13px; "><br></div><div style="font-family: Helvetica; font-size: 13px; ">e = "<span style="font-family: arial, sans-serif; ">exit immediately if any untested command fails"</span></div><div style="font-family: Helvetica; font-size: 13px; "><span style="font-family: arial, sans-serif; ">x = "w</span><span style="font-family: arial, sans-serif; ">rite each command to standard error (preceded by a '+ ') before it is executed. Useful for debugging"</span></div><div style="font-family: Helvetica; font-size: 13px; "><br></div>
                <div><div><br></div><div>-- </div><div>Jonathan Hoskin</div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">On Friday, 5 July 2013 at 10:54 AM, Worik Stanton wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div>This morning I was looking at my system trying to work out how to get</div><div>mythfill-database to talk to nz_grab_nz-py and I could not start</div><div>mythtv-setup.  It got as far as shutting down the backend and opening</div><div>the xterm, then hangs.</div><div><br></div><div>I rebooted the system and tried again, the same result.</div><div><br></div><div>I purged mythtv-common then reinstalled mythtv.  Same result.</div><div><br></div><div>'mythtv-setup' is a shell script (pointing to dash).  Is there a way I</div><div>can put that shell script (any shell script) into a debugger and step</div><div>through it?  Then I would have a better idea of what is making it hang.</div><div><br></div><div>Worik</div><div><br></div><div>-- </div><div>"As I went walking I saw a sign there And on the sign it said 'No</div><div>Trespassing' But on the other side it didn't say nothing, That side</div><div>was made for you and me" – Woody</div><div>       <a href="mailto:worik.stanton@gmail.com">worik.stanton@gmail.com</a> 021-1680650, (03) 4821804</div></div><div><div>_______________________________________________</div><div>mythtvnz mailing list</div><div><a href="mailto:mythtvnz@lists.linuxnut.co.nz">mythtvnz@lists.linuxnut.co.nz</a></div><div><a href="http://lists.ourshack.com/mailman/listinfo/mythtvnz">http://lists.ourshack.com/mailman/listinfo/mythtvnz</a></div><div>Archives <a href="http://www.gossamer-threads.com/lists/mythtv/mythtvnz/">http://www.gossamer-threads.com/lists/mythtv/mythtvnz/</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>