CRON job syntax

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frank Hagan
    Senior Member
    • Mar 2004
    • 724

    #1

    CRON job syntax

    I'm installing DadaMail, and it suggests setting up a CRON job with the following syntax:

    Code:
     *  *  *  *  * /usr/bin/perl /home/myaccount/cgi-bin/dada/plugins/dada_bridge.pl >/dev/null 2>&1
    I've replaced the "myaccount" with the cpanel username, and tried the command string without the "/usr/bin/perl " section. Any other help you guys can give me?

    (The program works when I manually invoke the program, but the CRON job is not running).
  • AndrewT
    Administrator
    • Mar 2004
    • 3655

    #2
    It seems like you're missing the public_html directory in that folder path:

    /home/user/public_html/cgi-bin/etc..

    Comment

    • Frank Hagan
      Senior Member
      • Mar 2004
      • 724

      #3
      Thanks, Andrew. I did have the public_html in the path. I actually had "/home/user/public_html/cgi-bin/dada/plugins/dada_bridge.pl >/dev/null 2>&1" ... I was wondering if the "/usr/bin/perl" is correct, or if "usr" needs to be changed to the username for that account?

      I'm not getting any email notifications from the cron job either, so if the path looks OK, then maybe I have a problem somewhere else.

      Comment

      • AndrewT
        Administrator
        • Mar 2004
        • 3655

        #4
        If you submit a trouble ticket with the full details I can easily look into this further.

        Comment

        • Frank Hagan
          Senior Member
          • Mar 2004
          • 724

          #5
          OK, thanks. I wanted to make sure I wasn't just doing something stupid before I had it validated by a ticket!

          Comment

          • Frank Hagan
            Senior Member
            • Mar 2004
            • 724

            #6
            I'll need to take a look at some other config options ... its not making a connection to sendmail, evidently, so I think my problem really lies elsewhere in the config file.

            Comment

            Working...