Results 1 to 6 of 6

Thread: Please help me with cron jobs
      
   

  1. #1
    jimtsik is offline Private First Class
    Join Date
    Mar 2007
    Location
    Greece, Athens
    Posts
    6

    Default Please help me with cron jobs

    I want to run the following file ..

    /etc/cron_backup.sh

    which is taking backup and emails it to my gmail account .

    What is the right command to enter at the cpanel via unix-style ?

    Thank you in advance

  2. #2
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Please help me with cron jobs

    Hi Δημητρη,

    I'm not sure about your .sh script. It should be php. In this case, the command should be:

    cd '/home/username/public_html/etc/'; php -q 'cron_backup.php' > /dev/null
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  3. #3
    jimtsik is offline Private First Class
    Join Date
    Mar 2007
    Location
    Greece, Athens
    Posts
    6

    Default Re: Please help me with cron jobs

    Thank you very much , i finally found a very nice php script that it makes backup my database and emails it to my gmail !!!

  4. #4
    playmode is offline Private First Class
    Join Date
    Mar 2008
    Posts
    7

    Default Re: Please help me with cron jobs

    Hello,

    I tried setting up the cron jobs using the following command line:

    " home/azbirjx/public_html/purchase-credits.php "

    and

    cd '/ home/azbirjx/public_html/'; php -q 'purchase-credits.php' > /dev/null ;



    In both cases I received similar emails with the following error message:


    From: Cron Daemon [root@voda22.voda22.com]
    To: admin@auditionbase.com
    Subject: Cron <azbirjx@voda22> home/azbirjx/public_html/purchase-credits.php

    /bin/sh: home/azbirjx/public_html/purchase-credits.php: No such file or directory

    and

    From: Cron Daemon [root@voda22.voda22.com]
    To: admin@auditionbase.com
    Subject: Cron <azbirjx@voda22> cd '/ home/azbirjx/public_html/'; php -q 'purchase-credits.php' > /dev/null ;

    /bin/sh: line 0: cd: / home/azbirjx/public_html/: No such file or directory


    What is the problem and how can it be resolved???

    John

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Please help me with cron jobs

    Your command line is wrong: there is a blank space after / and before home so it resuts in the above error.

    Correct one: cd '/home/azbirjx/public_html/'; php -q 'purchase-credits.php' > /dev/null ;


    Pleeeeease! Dont make multiple posts on the same issue: you posted here, in the CronJobs tutorial, AND in my private messages section!!
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  6. #6
    playmode is offline Private First Class
    Join Date
    Mar 2008
    Posts
    7

    Default Re: Please help me with cron jobs

    Thank you Naval design!! your the best!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49