<div class="gmail_quote">On Wed, Jun 22, 2011 at 15:50, John Fettig <span dir="ltr"><<a href="mailto:john.fettig@gmail.com">john.fettig@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":3rj">This still doesn't work, although I have no idea why. The title of<br>
the screen changes briefly to<br>
<br>
Cannot exec '/correct/path/garbage': No such file or directory.<br>
<br>
where "garbage" means non-ascii characters. I gave it the full path<br>
to redirect.sh and it displayed that correctly, just not the script.</div></blockquote></div><br><div>By title, I'm guessing you mean the screen session title.</div><div><br></div><div>Could you try changing the script to just have:</div>
<div><br></div><div>echo ppid=$PPID pwd=$PWD cmd="$@"</div><div>sleep 10</div><div><br></div><div><br></div><div>Screen's remote session creation unfortunately resets PWD (at least on my machine), so the gdb command is expected to "fail" at opening the executable (unless the original program was invoked with full path), but succeed at attaching to the process ID.</div>