Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've developed an (awesome) mozilla-based custom web-browser running on Ubuntu 10.10 that needs to always be open (it is basically a "kiosk").

If it crashes, which is easy to do in a single-threaded web-browser like mine, I need it to start right back up (actually, a 10 or so second delay before restarting would be okay).

Application Monitor for Windows would be perfect if it wasn't for Windows. I haven't been able to find something, preferably with a GUI, that does this.

I usually develop for Windows based systems so Ubuntu is a bit foreign to me.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You could wrap a bash script around it:

#!/bin/bash
while true
do
   <execute your browser>
   sleep <specify seconds here>
done

Paste it in a file, make it executable (chmod +x yourfile.sh or tick the execute box in the file properties in nautilus), double-click it and you should be good to go.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.