When does `cron.daily` run?

For the distributions you mention: On CentOS 5.4 (Should be same for RHEL5) grep run-parts /etc/crontab 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root run-parts /etc/cron.weekly 42 4 1 * * root run-parts /etc/cron.monthly So cron.daily runs at 04:02am. Same on … Read more

Moving an already-running process to Screen

Have a look at reptyr, which does exactly that. The github page has all the information. reptyr – A tool for “re-ptying” programs. reptyr is a utility for taking an existing running program and attaching it to a new terminal. Started a long-running process over ssh, but have to leave and don’t want to interrupt … Read more

Why is “chmod -R 777 /” destructive?

First of all a minor terminology nitpick: chmod doesn’t remove permissions. It CHANGES them. Now the meat of the issue — The mode 777 means “Anyone can read, write or execute this file” – You have given permission for anyone to do (effectively) whatever the heck they want. Now, why is this bad? You’ve just … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)