scottsgravy Posted February 23, 2005 Share Posted February 23, 2005 I have a script I want to run: cron-lynx.sh Its located here: /public_html/scripts/ Using the Standard Cron Manager in cpanel, what do I enter in "Command to run." Thanks. Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted February 23, 2005 Share Posted February 23, 2005 You would enter: /home/yourcpanelname/public_html/scripts/name-of-script Quote Link to comment Share on other sites More sharing options...
scottsgravy Posted February 24, 2005 Author Share Posted February 24, 2005 You would enter: /home/yourcpanelname/public_html/scripts/name-of-script <{POST_SNAPBACK}> Thanks. That path worked. I'm getting an error: /bin/sh: line 1: /home/controlpanelname/public_html/scripts/cron-lynx.sh: Permission denied The script in cron-lynx.sh is: #!/bin/sh /usr/bin/lynx -source http://www.scottsgravy.com/cron.php > /dev/null 2>&1 Quote Link to comment Share on other sites More sharing options...
TCH-RobertM Posted February 24, 2005 Share Posted February 24, 2005 Hi Scott, You would need to make sure the permissions are set to execute this maybe the cause for your issue. Quote Link to comment Share on other sites More sharing options...
borfast Posted February 24, 2005 Share Posted February 24, 2005 Scott, you may also want to run a simpler cron command, such as >php -q /home/yourusername/public_html/cron.php That way you don't need an extra shell script. Moving for organization. Quote Link to comment Share on other sites More sharing options...
scottsgravy Posted February 24, 2005 Author Share Posted February 24, 2005 Scott, you may also want to run a simpler cron command, such as >php -q /home/yourusername/public_html/cron.php That way you don't need an extra shell script. Moving for organization. <{POST_SNAPBACK}> Thanks, I tried that and got a bunch of errors. Maybe it doesn't work with Drupal? The other way works though. Thanks everyone for your help. Quote Link to comment Share on other sites More sharing options...
borfast Posted February 24, 2005 Share Posted February 24, 2005 Well, I'm not sure how Drupal needs the script to be run but either way should work just fine. If you got errors when using the method I suggested, you probably got the same errors when using the shell script but those are redirected to /dev/null, so you won't see them. Anyway, glad you got it working Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.