Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to write a script that would open a excel file periodically after certain intervals. How do I do it?

share|improve this question
up vote 2 down vote accepted

I assume you want to open the Excel file on Ubuntu with the associated application (LibreOffice Calc, gNumeric, etc.)

The script would then look like:


while true; do
  xdg-open /home/arp/Documents/periodic.xls
  sleep 600; # sleeps for 10 minutes or 600 seconds, adjust as desired

You can adjust the filename and the sleep time above.

share|improve this answer

Your Answer


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.