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 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
add comment

1 Answer 1

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:

#!/bin/bash

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

You can adjust the filename and the sleep time above.

share|improve this answer
add comment

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.