Results 1 to 4 of 4

Thread: how to automate the opening of a document?

  1. #1

    Default how to automate the opening of a document?

    I'd like my spreadsheet to open everyday at a specific time. So i created the following cron job:

    54 12 * * 1-4 oocalc /home/SIVECO/fdt/Documents/support/incidents.xls

    At the specified time, my spreadsheet does not appear. Other cron jobs run OK. Could it be that cron cannot run graphic programs?
    Office: 64-bit OpenSuse 12.1 KDE 4.7 nvidia with nouveau driver
    Home: 64-bit OpenSuse 12.1 KDE 4.7 ATI Audiophile2496

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: how to automate the opening of a document?

    Yes, your cron job doesn't run in an X environment and doesn't know if you in fact have an X server running at that time on that machine.

  3. #3
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,710
    Blog Entries
    1

    Default Re: how to automate the opening of a document?

    A thread dealing with similar issue here. Hope its relevant.

  4. #4

    Default Re: how to automate the opening of a document?

    Thank you all
    yes, you are right, my cron job did not work because my job needs an X server.
    And yes, your link to the other thread is relevant.

    Here is the solution:

    54 12 * * 1-4 export DISPLAY=:0 && oocalc /home/SIVECO/fdt/Documents/support/incidents.xls


    The 'export DISPLAY=:0 &&' does the trick.
    Office: 64-bit OpenSuse 12.1 KDE 4.7 nvidia with nouveau driver
    Home: 64-bit OpenSuse 12.1 KDE 4.7 ATI Audiophile2496

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •