CodeIgniter is really one of my favourite web development frameworks for PHP. It's lightweight, fast, and very easy to quickly get something working in. It follows a model-view-controller (MVC) pattern, and comes with many helpful libraries to help you get started.
Hi, all!
I was working on my Debian, minding my own business but then I wanted to see what happened if the same user was included on both cron.allow and cron.deny :p
I would have bet that cron.deny was going to override cron.allow for security reasons, but my computer proved me wrong: cron.allow seems to override cron.deny, so if you are on both, you can still cron jobs.
I'm curious about
On Debian Squeeze, cron stops running.
Last week we took a look at an introduction to the CodeIgniter PHP framework. In that example we saw the basics of how CodeIgniter works and the basics of the MVC pattern. But we didn't really do much with models. Today we will look at the power of models in CodeIgniter to make CRUD functions easy.
I see that Ubuntu uses /etc/cron.{daily,weekly,monthly} for cron jobs. I also see that some things, like updatedb from mlocate, put their jobs there:
$ dpkg -L mlocate|grep y/m
/etc/cron.daily/mlocate
Somtetimes, I would like to disable some of these jobs (mlocate in this case). I can obviously sudo mv /etc/cron.daily/mlocate ~/cron.daily-dont-run and be over with it.
I have problem on cron jobs that are still executing even after removing them.
I already view all the possible cron jobs from this article. All cron config files are empty or my cron task are not present. I also came up with this command for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done.
I am new to cron and I want to test if cron's mailing stuff after an executed task and things like that work. Is there a more elegant way to test this, then setting a cron job to run every few seconds? So, is there any way to simulate the execution of a cron job / start a cron job manually, but with the same behaviour it would have when being run automatically by cron?
I have a simple shell script that runs fine when opened in terminal, but will not run at all as a cron job!
The script is as follows:
#!/bin/sh
/usr/bin/sshfs example.com: /mnt
/usr/bin/rsync -az -v --progress -h --delete /mnt/html/ /home/user/html/
/bin/fusermount -u /mnt
Any reasons why this shouldn't work?
I'm new to Ubuntu and Cron so it might be something simple.
Thanks!
(I added the job
I have a Virtual Host set up in apache to run CodeIgniter:
<VirtualHost *:80>
DocumentRoot "/var/www/CodeIgniter"
ServerName codeigniter.loc
</VirtualHost>
Problem is, when I point my browser to 127.0.0.1, I'm getting the CodeIgniter home page instead of a list of the files in my root directory. Why is apache doing this?