[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-security] Cron



FTP the cgi script to the user folder the userid owns that logged into the ftp
server. I.e., if using admin, put the cgi script into the private folder for
admin. The userid must have write rights in the directory to be able to create
a file in the directory.

Next, telnet into the server as root or su - depending on the system being
used and move the file from the userid above to the appropriate directory.

On Sun, 11 Jun 2000 07:35:03 -0700, ISP4all <paul@xxxxxxxxxxxxx> wrote:

:>Can anyone point me in right direction as to how to set up a crontab
:>instruction to run a perl script once a week.

Put it in /etc/cron.weekly.

:>
:>On the cobaltt site it gives this instruction in the knowledge base:
:>
:>You can place the CGI you want to run every hour, into the directory
:>/etc/cron.hourly. Make sure that the script has execute permissions.
:>Also you need to be logged in as root to make this change.

Be sure to check the permissions.

:>If I carry out these instructions it will not let me FTP the Perl Script
:>into the /etc/cron.weekly directory as I get Permission Denied.  I am
:>also confused as to how the software will determine at what time of the
:>day to run the script.

/etc/crontab controls how things are run"

# run-parts
03,18,33,48 * * * * root run-parts /etc/cron.quarter-hourly
04,34 * * * * root run-parts /etc/cron.half-hourly
01 * * * * root run-parts /etc/cron.hourly
05 0,6,12,18 * * * root run-parts /etc/cron.quarter-daily
02 1 * * * root run-parts /etc/cron.daily
02 2 * * 0 root run-parts /etc/cron.weekly
02 3 1 * * root run-parts /etc/cron.monthly

man crontab -S 5 will give you information on the format.

HTH, Mike.

BTW, this topic would probably be better in cobalt-users. Also, when posting
it is helpful to put which system you are using in the subject line [Qube2]
since the various systems are a bit different.


-- 

  For information on the unofficial qube mailing list, see
  http://majordomo.email-lists.com/qube-users/