On Tue, 1 May 2007, David Williams wrote:

Fa o fila si o pui unceva cu ce e mai jos apoi rulezi fila aia din cron

PID=`ps -ef |grep "/cale/la/program"|grep -v grep | awk '{print $2}'`
echo bt > /tmp/bt
/usr/bin/gdb --pid=$PID --command=/tmp/bt --batch > /tmp/output
cat /tmp/output | mail -s "backtrace" [EMAIL PROTECTED]

Va tot chinuiti atita... Cel mai simplu e sa-l porneasca cum zicea el, cu --no-fork sau ceva, si sa-l puna in inittab cu respawn si sanatate.

        E labaristic insa si programul si dorinta lui sint la fel.

--
Any views or opinions presented within this e-mail are solely those of
the author and do not necessarily represent those of any company, unless
otherwise expressly stated.

_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui