Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2007
    Location
    Walsall
    Posts
    222
    Plugin Contributions
    0

    Default Cronjob command help required

    Hi All,

    I have a few scripts that should run every 30 mins.

    This one pulls the stock level/quantity

    php -q /home/softhand/public_html/cronImports/' ; php -q all_xml_product_list_client.php -p processqueue > /dev/null ;

    and then this one should export the pulled data into db

    php -q /home/softhand/public_html/cronImports/xlsImportBK.php -p processqueue > /dev/null ;

    These are the commands in my cronjob but not working as expected so i have to run the files manually.

    Do i need to change the command? Thanks in advance

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,175
    Plugin Contributions
    11

    Default Re: Cronjob command help required

    just because it runs manually does not mean it will run from cron. cron requires fully qualified file names, use variables where possible and fully qualify you’re commands too! use /usr/bin/gzip rather than just gzip. it takes some testing.

    Watch for stray or un-escaped characters as well.

 

 

Similar Threads

  1. Cronjob assistance
    By hamid84 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Jun 2010, 05:59 PM
  2. Help required
    By s_developer in forum Installing on a Windows Server
    Replies: 3
    Last Post: 22 Apr 2009, 07:30 AM
  3. Set File Permissions from Command Line Help
    By Picci in forum General Questions
    Replies: 1
    Last Post: 20 Jan 2007, 03:00 PM
  4. Help Required !
    By danh111 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 Dec 2006, 05:51 PM

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