Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    785
    Plugin Contributions
    7

    Default Re: Setting up a cron job for the Snapshot add-on?

    Changed $fw->reportAlways to true. Still no eMail when run from admin, and the cron eMail still produces only:
    Lets step back a little:

    Running snapshot from admin will do an instant scan of your site. And not generate a email.

    When running snapshot_cron it is nothing more then running snapshot with a system scheduler. The difference is snapshot_cron will not output any info to your browser/screen. Any and all info will be placed in a email and sent to you.

    So if you setup the cron to run every 30min and you have set reportAlways to true in snapshot_cron.php you will get an email 10:00pm and 10:30pm etc.

    If you do not get a email.
    1. The email is going to a accessible email address?
    2. The cron command is not setup correctly.

    Try adding -q example:

    0,30 * * * * php -q /home/site162/public_html/admin/backups/snapshot/snapshot_cron.php >/dev/null 2>&1

    You should ask your hosting company to setup the cron for you.
    Because there are tons of ways to call a php script. What I have shown you is a common cron call.
    Some servers require the path to php itself.

    Skip
    • 446F63746F722057686F •

  2. #12
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Setting up a cron job for the Snapshot add-on?

    The cron runs fine, and generates an eMail notice just like it's supposed to. The problem is that the notice doesn't contain any information.

    Not really a big deal, though. It would just have been gravy on the mashed potatos. The mod is still saving me a ton of time monitoring my sites.

    Thanks, again for a valuable tool!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. cron job for Recover Cart Sale add-on
    By pdxdoug in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 19 Sep 2015, 02:18 AM
  2. Replies: 7
    Last Post: 17 Jan 2014, 03:45 PM
  3. Admin auto login for a cron job
    By Gigo in forum Customization from the Admin
    Replies: 20
    Last Post: 9 Aug 2012, 07:39 AM
  4. Cron Job for Optimize Database
    By Convergence in forum General Questions
    Replies: 4
    Last Post: 24 Jan 2011, 09:36 PM
  5. Cron Job for Updating QTY
    By ryanb4614 in forum General Questions
    Replies: 2
    Last Post: 9 Aug 2010, 07:13 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR