Results 1 to 7 of 7
  1. #1
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    ÄúsTrálíĺ
    Posts
    1,372
    I'm trying to set up a cron job to run my stats package nightly.
    I need it to run two commands.
    1 - analog
    this does the stats for my main site

    2 - analog +g/www/vhosts/mydomain.com/logs/analog.cfg
    this does the stats for my vhost site on the same server

    I tried & my cron-daemon sends me two emails saying "analog: not found"

    I can run these commands from a telnet prompt & all works well, but not from crontab.

    any suggestions?

  2. #2
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    ÄúsTrálíĺ
    Posts
    1,372
    anyone?

  3. #3
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    2,402
    Pete...are you absolutely sure your paths are correct?

  4. #4
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    ÄúsTrálíĺ
    Posts
    1,372
    I can just type "analog" from any directory and it runs with telnet..
    Do I need to have an absolute address for the analog file with a cronjob?

    The path for the vhost .cfg file is correct... it runs from the prompt no problem..


    maybe I need /www/whatever/analog +g/etc...
    thanks

  5. #5
    Master of Design AlexBet's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,364
    Hmmmm, those paths can be a pain sometimes.

    Try something like this.

    analog +g/logs/analog.cfg

    This is the virtual path to it.

    or maybe you need the physical path. Do you know the physical path? It should be something like this.

    analog +g whatever drive:\whatever web folder\your site folder\analog.cfg

    I really have no experience with this, but I am trying to help you cause I've had my share of problems with the damn paths, so I know how it feels. :mad:

  6. #6
    Member
    Join Date
    January 18th, 2005
    Posts
    128
    Try to call your programs with a preceding . (period like this:

    ./analog +g/www/vhosts/mydomain.com/logs/analog.cfg

    If that doesn't help, add the absolute path, e.g.:

    ./www/vhosts/mydomain.com/wherever/analog +g/www/vhosts/mydomain.com/logs/analog.cfg

    To find out the path, change to the directory where analog resides and type "pwd".

    HTH,
    Karl

  7. #7
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    ÄúsTrálíĺ
    Posts
    1,372
    thanks heaps guys.
    It's late here at the moment, so first thing tomorrow I'll try it.
    I think Karl's ./analog will do the trick though (hopefully).
    I know the path to the vhost log files is correct, and the other log file is the default one (analog on its own), so it is just the path to the analog file I might need to find..
    thanks

  8. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Cron Jobs
    By Kevin in forum Marketing Resources & Power Tools
    Replies: 3
    Last Post: March 23rd, 2005, 04:17 PM
  2. Cron/Perl
    By c4 in forum Programming / Datafeeds / Tools
    Replies: 9
    Last Post: February 4th, 2003, 01:44 PM

Posting Permissions

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