Results 1 to 3 of 3

Thread: script not running in cron

  1. #1
    Join Date
    Dec 2006
    Location
    South West England
    Beans
    312
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    script not running in cron

    Hi, is there a way to execute a script on shutdown using cron?
    Regards
    ?Sorry about the misleading title
    Sokol
    Last edited by sn0m; September 19th, 2011 at 10:26 PM.
    Pain is weakness leaving the body. Paddy

  2. #2
    Join Date
    Nov 2007
    Location
    Wisconsin
    Beans
    1,139

    Re: script not running in cron

    No.
    Cron, to my knowledge, is not called during shutdown. Anacron is called during startup/wake-up, but not suspend/shutdown.

    To run a job at shutdown, such as backup or unmount, use Upstart. That also adds more flexibility to the range of system events you can use for your triggers. For example, my laptop automatically unmounts network drives and changes the wallpaper upon both shutdown and changing networks.

  3. #3

    Re: script not running in cron

    Windows assumes the user is an idiot.
    Linux demands proof.

Bookmarks

Posting Permissions

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