Help! Crontab makes me cry..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JD
    Too lazy to set a custom title
    • Sep 2003
    • 22651

    #1

    Help! Crontab makes me cry..

    I'm trying to install a smartthumbs cron and it's fagging out on me. Here's what I'm doing:

    I SSH into my box

    #crontab -e

    * /2 * * * * /usr/bin/php -q
    /var/www/sites/www.domain_censored.com/html/st/admin/cron.php -server 1 > /dev/null 2>&1

    exit then I get an error:


    crontab: installing new crontab
    "/tmp/crontab.D4YlWe/crontab":0: bad hour
    errors in crontab file, can't install.
    Do you want to retry the same edit?

    anybody know wtf is going on?

    OS = Debian if that means anything to anyone lol
  • MyNameIsNobody
    Confirmed User
    • Dec 2005
    • 2947

    #2
    sorry, I'm just here for the sig spot..

    MyNameIsNobody - ICQ: 279-601-583

    Comment

    • JD
      Too lazy to set a custom title
      • Sep 2003
      • 22651

      #3
      Originally posted by MyNameIsNobody
      sorry, I'm just here for the sig spot..
      hurry up and get banned

      Comment

      • baddog
        So Fucking Banned
        • Apr 2001
        • 107089

        #4
        DirectAdmin makes it so easy

        Comment

        • JD
          Too lazy to set a custom title
          • Sep 2003
          • 22651

          #5
          Originally posted by baddog
          DirectAdmin makes it so easy
          HEY! That's fan fucking tastic! Too bad it has nothing to do with my question.

          Comment

          • flashbang
            Confirmed User
            • May 2006
            • 767

            #6
            */2

            not /2

            and you have one too many *

            or maybe you meant */2 * * * *



            Your TGP traffic belongs to you again
            |
            X Rated Words & Hard Links

            Comment

            • kuthi123
              Confirmed User
              • Jan 2005
              • 6478

              #7
              you missed * it should be like */2 for every other hour

              Comment

              • JD
                Too lazy to set a custom title
                • Sep 2003
                • 22651

                #8
                I just tried

                */2 * * * /usr/bin/php -q /var/www/sites/www.domain_censored.com/html/st/admin/cron.php -server 1 > /dev/null 2>&1

                and it's saying bad day of week

                am i just fucking retarded?
                Last edited by JD; 07-03-2006, 12:24 AM.

                Comment

                • baddog
                  So Fucking Banned
                  • Apr 2001
                  • 107089

                  #9
                  maybe this will help

                  You can specifiy exact times using commas to separate them. eg: 1,2,3 (minutes 1,2 and 3)
                  You can specify spans using a dash. eg: 5-7 (minutes 5 to 7)
                  You can specify intervals using a star and a forward slash. eg: */2 (every 2nd minute)
                  You can combine them to create a more precise schedule. eg: 1,5,11-15,30-59/2 (minutes 1, 5, 11 to 15 and every 2nd minute between 30 and 59)
                  Note that there are no spaces

                  Comment

                  • Tempest
                    Too lazy to set a custom title
                    • May 2004
                    • 10217

                    #10
                    Are you missing a >?

                    try:

                    * */2 * * * /usr/bin/php -q /var/www/sites/www.domain_censored.com/html/st/admin/cron.php -server 1>>/dev/null 2>&1

                    and maybe your OS needs it slightly different like

                    * 0-23/2 * * * /usr/bin/php -q /var/www/sites/www.domain_censored.com/html/st/admin/cron.php -server 1>>/dev/null 2>&1

                    How often did you want it to execute?
                    Last edited by Tempest; 07-03-2006, 12:33 AM.

                    Comment

                    • gooddomains
                      Too lazy to set a custom title
                      • Jul 2003
                      • 10127

                      #11
                      crontab is a bitch

                      Comment

                      • JD
                        Too lazy to set a custom title
                        • Sep 2003
                        • 22651

                        #12
                        turns out I had the fucking syntax right after post #8.......fucking putty not being full screen had broken the lines into their own instead of keeping the shit on 1 line like I had typed it

                        thanks for all your help guys much appreciated

                        Comment

                        • studiocritic
                          Confirmed User
                          • Jun 2005
                          • 2442

                          #13
                          grab securecrt.. putty sucks
                          254342256

                          Comment

                          • PussyTeenies
                            Confirmed User
                            • Feb 2005
                            • 6496

                            #14
                            spermy

                            Code:
                            #st pussyteenies
                            */2 * * * * /usr/local/bin/php -q /usr/local/apache/htdocs/pussyteenies.com/st/admin/cron.php -server 1 > /dev/null 2>&1
                            * * * * * /usr/bin/nice /usr/local/bin/php -q /usr/local/apache/htdocs/pussyteenies.com/st/admin/autocrop.php > /dev/null 2>&1
                            * * * * * /usr/bin/nice /usr/local/bin/php -q /usr/local/apache/htdocs/pussyteenies.com/st/admin/check.php > /dev/null 2>&1
                            Need adult hosting?

                            Contact us!
                            WARM Hosting

                            Need an IT solution? or someone to check your site and security? Nossie - IT Professional

                            Comment

                            • Godsmack
                              Confirmed User
                              • Apr 2004
                              • 4525

                              #15
                              thanks Bill
                              Download the much improved Free Tube Script adult/mainstream tube solution for FREE!

                              Comment

                              • CIVMatt
                                Amateur Pimpin
                                • Aug 2004
                                • 13075

                                #16
                                Originally posted by MyNameIsNobody
                                sorry, I'm just here for the sig spot..


                                lol that made me laugh (and cry a little )
                                Make easy money with Webcams

                                Comment

                                • themanager
                                  Confirmed User
                                  • Apr 2006
                                  • 508

                                  #17
                                  what a painful bite.

                                  Comment

                                  • marketsmart
                                    HOMICIDAL TROLL KILLER
                                    • Dec 2004
                                    • 20419

                                    #18
                                    don't mind me, i'm just browsing...

                                    Comment

                                    • Basic_man
                                      Programming King Pin
                                      • Oct 2003
                                      • 27360

                                      #19
                                      Glad it's working now. If you have any template problem with ST, you can hit me up on ICQ (34916475). You can let me do all the template works for a little
                                      UUGallery Builder - automated photo/video gallery plugin for Wordpress!
                                      Stop looking! Checkout Naked Hosting, online since 1999 !

                                      Comment

                                      • Godsmack
                                        Confirmed User
                                        • Apr 2004
                                        • 4525

                                        #20
                                        Originally posted by Basic_man
                                        Glad it's working now. If you have any template problem with ST, you can hit me up on ICQ (34916475). You can let me do all the template works for a little
                                        Look under Tools/template maker

                                        We added a template maker tool a long time ago :-) and it works :-)
                                        Download the much improved Free Tube Script adult/mainstream tube solution for FREE!

                                        Comment

                                        Working...