Right now I have two problems with the forums.
By default if someone creates a new forum topic the node gets published on the home page. I obviously do not want this and would like to disable the option for the normal users. I tried to search in the options but I haven't found a solution.
The second problem is about being able to set different permissions on one of the forums so that only moderators can post. Is this a possibility in Drupal?
-HRose / Abalieno
On Wed, 06 Jul 2005 13:58:24 +0200, Abalieno abalieno@cesspit.net wrote:
Right now I have two problems with the forums.
By default if someone creates a new forum topic the node gets published on the home page. I obviously do not want this and would like to disable the option for the normal users. I tried to search in the options but I haven't found a solution.
Look under Admininster > Content > Configuration > Content Types. You should be able to set the default workflow for forums there.
The second problem is about being able to set different permissions on one of the forums so that only moderators can post. Is this a possibility in Drupal?
Not by default. You can use something like taxonomy_access.module to achieve this, IINM.
I have been trying to get Crontab to work on my site http://cmlhope.com but none of the commands listed in the help section have worked. I am trying to set it to refresh external news feeds X number of times a day.
Could someone suggest what command would work best on this?
Rob
On 6 Jul 2005, at 12:15 PM, Rob wrote:
I have been trying to get Crontab to work on my site http://cmlhope.com but none of the commands listed in the help section have worked. I am trying to set it to refresh external news feeds X number of times a day.
You need to provide more details. Is cron.php being run? (check your logs) If so, your problem is not with cron.
Are there error messages in your Drupal logs or in system log files? Are you able to get the news feeds manually?
Could someone suggest what command would work best on this?
Rob
Djun
The hosting server uses CPanel with a feature called Standard Cron Manager. It asks for:
Command to run:
It then asks for hourly, daily, etc. on the job to be done. I am able to manually refresh the news feeds on aggregator but it will not do them automatically. I have tried using various command lines such as 00 * * * * but none have worked. I get error messages by email from the server saying "No such file or directory". I am trying to figure out what to put in the command line box that will access the right area to automatically update the aggregator.
Rob
----- Original Message ----- From: "puregin" puregin@puregin.org To: drupal-support@drupal.org; "Rob" rob@rwneill.com Sent: Wednesday, July 06, 2005 4:07 PM Subject: Re: [drupal-support] Using Crontab For Aggregator
On 6 Jul 2005, at 12:15 PM, Rob wrote:
I have been trying to get Crontab to work on my site http://cmlhope.com but none of the commands listed in the help section have worked. I am trying to set it to refresh external news feeds X number of times a day.
You need to provide more details. Is cron.php being run? (check your logs) If so, your problem is not with cron.
Are there error messages in your Drupal logs or in system log files? Are you able to get the news feeds manually?
Could someone suggest what command would work best on this?
Rob
Djun
Hi Rob,
I understand (more of) your situation now. On my systems, I use something similar to the following line as a crontab entry
0,15,30,45 * * * * wget -q http://www.example.com/cron.php
This says to run the 'wget' command to fetch the indicated web page. The -q flag tells wget to discard any output ('quiet mode'). The command is executed at the top of the hour and periodically at 15 minute intervals, every hour, every day.
Theoretically, this should also alert you by e-mail if your site is down for some reason (though if the cron daemon is running on the same machine as the web server, it may also be out of action)
Djun
On 6 Jul 2005, at 10:04 PM, Rob wrote:
The hosting server uses CPanel with a feature called Standard Cron Manager. It asks for:
Command to run:
It then asks for hourly, daily, etc. on the job to be done. I am able to manually refresh the news feeds on aggregator but it will not do them automatically. I have tried using various command lines such as 00 * * * * but none have worked. I get error messages by email from the server saying "No such file or directory". I am trying to figure out what to put in the command line box that will access the right area to automatically update the aggregator.
Rob
----- Original Message ----- From: "puregin" puregin@puregin.org To: drupal-support@drupal.org; "Rob" rob@rwneill.com Sent: Wednesday, July 06, 2005 4:07 PM Subject: Re: [drupal-support] Using Crontab For Aggregator
On 6 Jul 2005, at 12:15 PM, Rob wrote:
I have been trying to get Crontab to work on my site http://cmlhope.com but none of the commands listed in the help section have worked. I am trying to set it to refresh external news feeds X number of times a day.
You need to provide more details. Is cron.php being run? (check your logs) If so, your problem is not with cron.
Are there error messages in your Drupal logs or in system log files? Are you able to get the news feeds manually?
Could someone suggest what command would work best on this?
Rob
Djun
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Djun M. Kim, Director djun.kim@cielosystems.com Cielo Systems Inc. http://www.cielosystems.com Strategic Software Research Tel: (604) 739-3941 302 - 1298 10th Avenue West FAX: (604) 739-3943 Vancouver, BC, V6H 1J4 Mobile:(778) 895-1379
I have tried the command line several ways:
00 * * * * http://www.cmlhope.com/drupal/cron.php
and
0,15,30,45 * * * * wget -q http://www.cmlhope.com/drupal/cron.php
This the error message I am getting back now.
----- Original Message ----- From: "Cron Daemon" root@venus.nswebhost.com To: rob@rwneill.com Sent: Friday, July 08, 2005 10:00 AM Subject: Cron cmlhope@venus 00 * * * * http://www.cmlhope.com/drupal/cron.php
/bin/sh: line 1: 00: command not found
----- Original Message ----- From: "puregin" puregin@puregin.org To: "Rob" rob@rwneill.com Cc: drupal-support@drupal.org Sent: Thursday, July 07, 2005 1:00 AM Subject: Re: [drupal-support] Using Crontab For Aggregator
Hi Rob,
I understand (more of) your situation now. On my systems, I usesomething similar to the following line as a crontab entry
0,15,30,45 * * * * wget -q http://www.example.com/cron.php
This says to run the 'wget' command to fetch the indicated web page. The -q flag tells wget to discard any output ('quiet mode'). The command is executed at the top of the hour and periodically at 15 minute intervals, every hour, every day.
Theoretically, this should also alert you by e-mail if your site is down for some reason (though if the cron daemon is running on the same machine as the web server, it may also be out of action)
Djun
On 6 Jul 2005, at 10:04 PM, Rob wrote:
The hosting server uses CPanel with a feature called Standard Cron Manager. It asks for:
Command to run:
It then asks for hourly, daily, etc. on the job to be done. I am able to manually refresh the news feeds on aggregator but it will not do them automatically. I have tried using various command lines such as 00 * * * * but none have worked. I get error messages by email from the server saying "No such file or directory". I am trying to figure out what to put in the command line box that will access the right area to automatically update the aggregator.
Rob
----- Original Message ----- From: "puregin" puregin@puregin.org To: drupal-support@drupal.org; "Rob" rob@rwneill.com Sent: Wednesday, July 06, 2005 4:07 PM Subject: Re: [drupal-support] Using Crontab For Aggregator
On 6 Jul 2005, at 12:15 PM, Rob wrote:
I have been trying to get Crontab to work on my site http://cmlhope.com but none of the commands listed in the help section have worked. I am trying to set it to refresh external news feeds X number of times a day.
You need to provide more details. Is cron.php being run? (check your logs) If so, your problem is not with cron.
Are there error messages in your Drupal logs or in system log files? Are you able to get the news feeds manually?
Could someone suggest what command would work best on this?
Rob
Djun
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Djun M. Kim, Director djun.kim@cielosystems.com Cielo Systems Inc. http://www.cielosystems.com Strategic Software Research Tel: (604) 739-3941 302 - 1298 10th Avenue West FAX: (604) 739-3943 Vancouver, BC, V6H 1J4 Mobile:(778) 895-1379
Rob wrote:
I have tried the command line several ways:
00 * * * * http://www.cmlhope.com/drupal/cron.php
and
0,15,30,45 * * * * wget -q http://www.cmlhope.com/drupal/cron.php
This the error message I am getting back now.
The first version above makes no sense: you are asking the host machine to execute a URL directly as an executable binary program.
The second version makes sense, but may not work, depending on your host. It is asking the machine to run the "wget" executable binary program with the parameters "-q" and "http://www.cmlhope.com/drupal/cron.php" -- which makes sense for wget because it is a program designed to fetch web pages from a supplied address.
However, the error message you are getting, "command not found," means exactly that. In this case, it might well be the case that the program (command) "wget" is not being found, if it is the second version above that is producing that error message.
One reason it might not be found is that the wget program simply is not installed on your host.
Another reason is that it may be installed, but it is not in the default search path (the "path") for the cron program -- that is, the list of directories cron should look in to find programs it is asked to run. If you know which directory on the host which is running the crontab the "wget" program is installed in, you can use its full path name to run it. For example, if it is in the /usr/local/bin directory, your crontab entry might look like this:
00 * * * * /usr/local/bin/wget -q http://www.cmlhope.com/drupal/cron.php
-- Chris Johnson
On 8 Jul 2005, at 9:47 AM, Rob wrote:
I have tried the command line several ways:
00 * * * * http://www.cmlhope.com/drupal/cron.php
and
0,15,30,45 * * * * wget -q http://www.cmlhope.com/drupal/cron.php
This the error message I am getting back now.
----- Original Message ----- From: "Cron Daemon" root@venus.nswebhost.com To: rob@rwneill.com Sent: Friday, July 08, 2005 10:00 AM Subject: Cron cmlhope@venus 00 * * * * http://www.cmlhope.com/drupal/cron.php
/bin/sh: line 1: 00: command not found
This looks to me as if you are submitting a line from your crontab file as input to your shell (/bin/sh).
The crontab entry should be present as a line in your crontab. If you are trying to set this up from the command line, you would normally use the command 'crontab' to do this. Crontab will start up a text editor which will let you enter the line. It checks for correct syntax and then modifies the file. See the Unix manual pages for crontab for more details.
If you are using a web interface, it will likely have a form which will let you specify the command to execute, and the periods for which you wish the command executed. In this case the command would consist of only the last part of the crontab line 'wget -q http:// ...'
The error message is also telling you that you typed '00' rather than '0 0', which may or may not give you the result you expect, depending on your system (and your expectations :)
Djun