[petsc-users] Attaching to gdb within screen
Jed Brown
jed at 59A2.org
Wed Jun 22 08:15:35 CDT 2011
On Wed, Jun 22, 2011 at 15:09, Jed Brown <jed at 59a2.org> wrote:
> $ cat > redirect.sh
> #!/bin/sh
>
> echo ppid=$PPID pwd=$PWD cmd="$@"
> sleep 10
> exec "$@"
>
This might be more useful written as
echo ...
"$@"
sleep 10
Also, if you do sleep for 10 before, then be sure to add -debugger_pause 20
to the PETSc command line because 10 happens to be the default sleep time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110622/5e406224/attachment.htm>
More information about the petsc-users
mailing list