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 “”.

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.


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

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

chmod +x

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.


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”

  1. Opera 10.00 Opera 10.00 GNU/Linux GNU/Linux
    Opera/10.00 (X11; Linux i686 ; U; en) Presto/2.2.0

    meh.. a bit too complicated… πŸ™‚

    opera $@ &
    inspectr $!

  2. Opera Turbo 10.00 Opera Turbo 10.00 GNU/Linux x64 GNU/Linux x64
    Opera/10.00 (X11; Linux x86_64; U; Edition Turbo; en) Presto/2.2.0

    haha, nice…although I’m now waiting for the built-in crashlog support for Linux. πŸ˜›

Leave a Reply

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