Crash logging Opera with Inspector IIXII for Linux

For those of you interested, I’ve spent a bit of my time trying to make your crashing logging life easier. 😉

After reading a post from csant‘s blog I decided to try to make the process of starting up Inspector a little less annoying by writing a Bourne shell script to automatically parse the PID and execute Inspector with the proper PID parameter for Opera.

After taking what csant had already posted (and is posted in a couple of other places) I just did a little extending that narrowed down the results to the correct one and parsed the second element divided by whitespace, which has to be the PID. It’s a fairly simple script. 😉

To get started crash logging Opera to help make it better all you need to do is download the Inspector program and create a new file named “inspectr.sh”.

Notice that I named it “inspectr” intentionally, as the linux program file is and has always been just “inspectr” so this helps keep confusion between file names down.

In the new shell file that you’ve created, copy and paste the following and save it.

#!/bin/sh

opera=`ps aux | grep opera$ | awk '{print $2}'`
if [ "$opera" != "" ]; then
./inspectr $opera
fi

After saving it, you’ll need to run the following to make it executable.

chmod +x inspectr.sh

Make sure that you saved both of the files together and also followed the instructions for setting up Inspector (really just chmod 755). After that you can just pop open a terminal, navigate to the inspector directory and run the following command to attach Inspector to the current running version of Opera.

./inspectr.sh

That’s about it! Collect those logs and make sure to send them with your bug reports!

3 thoughts on “Crash logging Opera with Inspector IIXII for Linux”

Leave a Reply

Your email address will not be published. Required fields are marked *