cron job help

Discussion in 'Apache' started by netpox, Aug 23, 2007.

  1. #1
    I have set up cron jobs on my server and the email report i get says:

    /bin/sh: 59: command not found


    on every single one..what does that mean?
     
    netpox, Aug 23, 2007 IP
  2. TBOS

    TBOS Member

    Messages:
    52
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #2
    It means you are using a command that doesn't exist in your cron job.
     
    TBOS, Aug 23, 2007 IP
  3. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    try /bin/bash

    failing that

    just try "sh" or "bash" instead of /bin/sh or /bin/bash

    try /bin/bash first - as just running the command without a path is a secutiry issue, also it might not work due to pathing.
     
    powerspike, Aug 23, 2007 IP
  4. netpox

    netpox Active Member

    Messages:
    1,625
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    90
    #4
    I was also told that my server does not have curl installed. Could that be it?
     
    netpox, Aug 30, 2007 IP
  5. greys

    greys Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes, this could easily be the reason. Try using wget instead?
     
    greys, Aug 31, 2007 IP
  6. netpox

    netpox Active Member

    Messages:
    1,625
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    90
    #6
    I tried wget also and still the same problem.

    Anyone could help me???
     
    netpox, Sep 19, 2007 IP