|
Wake Linux with Cron |
 vote
 |
|
Here's how to wake up your sleeping Linux system with a cron job...
Here's the latest in our new series on OS tips from power users: a seemingly trivial task. You have a computer, most likely a laptop, that you wish to keep suspended while you're not working. For example, let's say overnight. At the same time, you wish to run a handful of maintenance tasks, like backups and cleanup, which you don't normally do during the day. So you need a mechanism that will send your machine to sleep, wake it up when necessary, run cron jobs, then send it back to sleep again. read more... |
|
| | mail this link | permapage | score:8436 | -Ray, December 15, 2010 |
|
Cron Tutorial |
 vote
 |
|
Create and manage cron jobs with crontab in Linux...
This is a beginner tutorial on using crontabs or cron jobs in your LAMP (Linux/Apache/MySQL and PHP) web hosting account. Crontabs can be used to automatically execute server side commands, such as a PHP script, at periodic intervals. You can specify these periodic intervals, whether you want the script to be executed hourly, daily, weekly, and so on. read more... |
|
| | permapage | score:8418 | -Ray, December 15, 2010 |
|
Beginner introduction to job scheduling with cron |
 vote
 |
|
This very short explanation of crontab and cron jobs is probably appropriate to the task. Cron is pretty simple to use, yet expensive scheduling packages sell regularly to IT shops. Those packages, of course, can also use cron...
Like most Linux commands, there are any number of explanations for the name "crontab" -- the one I prefer is c(h)ronological table. To begin using it, type crontab -e to invoke a text editor on the file. By default crontab -e uses vi. To change the default editor to, say, pico, add to your .profile the line:
export VISUAL=pico read more... |
|
| | mail this link | permapage | score:7912 | -Ray, August 23, 2005 |
|
Last day of the month cron processing |
 vote
 |
|
Dealing with an annoying scripting problem...
One of the issues that has long irritated Unix users when setting up cron jobs is how to set up a job to run on the last day of the month. Unless one wants to set up a separate cron job for every month (and this still leaves the problem of leap years), it isn't at all straightforward how to attack this seemingly ordinary problem with an ordinary solution. However, there are some reliable ways to code around the problem. One long winded but workable way to determine the last day of any month in any year is to string together some well known Unix commands. The last day in the month of February next year, for example, could be extracted from the last non-blank line in the output of the calender command like this: read more... |
|
| | mail this link | permapage | score:7657 | -Ray, April 14, 2006 |
|
Cron alternatives |
 vote
 |
|
Two open source alternatives to the cron daemon...
But hcron also addresses a few problems cron didn't anticipate, leaving aside its arcane syntax. When you run a cron job, you must kludge together something in the job itself or in the command you pass to cron to send an email when a job is completed. The hcron utility is expressly designed to allow for an email when the job is run.
The real kicker is remote execution. When cron was conceived, the computing environment was much less complicated -- and less networked. Today, it's hard to imagine any professional IT worker not having to manage remote machines. Hcron is designed for remote execution as well as local. read more... |
|
| | mail this link | permapage | score:7648 | -Ray, December 22, 2010 |
|
Remote backup using ssh, tar and cron |
 vote
 |
|
Security means having a complete backup on a far-away machine...
Are you looking for a solution to backup your data to a remote location? While a solid backup solution such as Arkeia or TSM from IBM are nice from an enterprise point of view, simpler solutions are available from a home user's perspective. I will walk you through on you how you can backup your data to a remote server, using the default tools available on all linux systems. In a nutshell, we will use ssh capabilities to allow a cron job to transfer a tarball from you local machine to a remote machine. read more... |
|
| | mail this link | permapage | score:7517 | -Ray, May 23, 2004 (Updated: March 24, 2007) |
|
Crontab Quick Reference |
 vote
 |
|
Handy tips and a quick reference for the Unix / Linux job scheduling daemon, cron...
You can execute crontab if your name appears in the file /usr/lib/cron/cron.allow. If that file does not exist, you can use crontab if your name does not appear in the file /usr/lib/cron/cron.deny.
If only cron.deny exists and is empty, all users can use crontab. If neither file exists, only the root user can use crontab. The allow/deny files consist of one user name per line. read more... |
|
| | permapage | score:7113 | -Ray, December 14, 2005 |
|
Linux job scheduling: Introduction to cron and crontab |
 vote
 |
|
This is a newbie introduction to scheduling Linux tasks with the cron daemon.
Most distributions take advantage of that fact to schedule recurring maintenance jobs to be run while you're least likely to be around. Things like trimming system log files, for example. Otherwise they might eventually fill every byte of available disk space. That's where cron and crontab come in, and that's our topic for the week. read more... |
|
| | permapage | score:6999 | -Ray, April 6, 2004 |
|
PHP: Zend, symfony, and CakePHP cron automation |
 vote
 |
|
| A short few years ago, a common criticism about PHP was that it did not support MVC-style architectures. Today, developers can chose from many PHP frameworks. This article shows you how to integrate external tasks with PHP frameworks and create a simple task that can be called using a scheduler such as cron. You'll build the application in each framework, getting a sense for how Zend, symfony, and CakePHP handle automated tasks differently. read more... |
|
| | permapage | score:6924 | -solrac, February 28, 2008 |
|
CRON and Linux Automation |
 vote
 |
|
The basics of cron and at for Linux or Unix...
Cron is a tool that functions based on a specific Linux user. In fact, every user on a server can have individual cron settings.
Therefore, whoever you are logged in as will be the one whose cron settings you create. If you must create a cron setting that root user initiates, you should be logged in as root. read more... |
|
| | permapage | score:6876 | -Ray, May 27, 2006 |
|
Automate shutdowns and maintenance with Anacron |
 vote
 |
|
| Linux ordinarily uses Cron to automatically perform routine system maintenance on desktop or laptop computers, however not running Cron routinely can result in monstrously large log files and other problems. You can offload most or all of your usual daily and longer-interval Cron jobs onto Anacron enabling your computer to run regular maintenance jobs whenever the computer is powered on, even if those times are unpredictable. read more... |
|
| | permapage | score:6753 | -solrac, May 8, 2009 |
|
Incron: Triggering commands on file/directory changes |
 vote
 |
|
| This guide shows how you can install and use incron on a Debian Etch system. Incron is similar to cron, but instead of running commands based on time, it can trigger commands when file or directory events occur (e.g. a file modification, changes of permissions, etc.). read more... |
|
| | permapage | score:6568 | -falko, September 2, 2008 |
|
Linux Job Scheduling with Cron and At |
 vote
 |
|
| You need to run a job at midnight, daily, or weekly, but you would rather be sleeping, or enjoying life some other way. This tip helps you use the cron and at capabilities to schedule jobs periodically or at a single future time, so you can sit back and let routine tasks happen automatically and consistently while you enjoy life. read more... |
|
| | permapage | score:6286 | -Ida Momtaheni, July 25, 2007 |
|
Scheduling Linux Backups with at and crontab |
 vote
 |
|
You can schedule a command or a script using two tools
crontab : Schedules tasks once or repeatedly.
You can use the crontab command to run commands at regular times. For example, you could schedule a backup of your files every Friday. Commands can be scheduled to the minute.
at : Schedules tasks once.
You can use the at command to schedule a command or script to run a single time. The command includes several utilities... read more... |
|
| | permapage | score:6180 | -gg234, April 22, 2006 |
|
Introduction To Cron Jobs |
 vote
 |
|
This article is a short introduction to cron jobs, their syntax, and how to set them up. A cron job is a scheduled task that is executed by the system at a specified time/date.
The command to create/edit, list, and remove cron jobs is crontab. If you call it with the -u option, it specifies the name of the user whose crontab is to be tweaked. If this option is not given, crontab examines "your" crontab, i.e., the crontab of the person executing the command. If you are looged in as root and run crontab without -u, then root's crontab is listed/modified/removed. read more... |
|
| | mail this link | permapage | score:4551 | -falko, April 8, 2009 |
|
Automate maintenance with cron |
 vote
 |
|
| To leverage round-the-clock computing, tasks must run at all hours of the day. From very often to every so often, cron happily minds the clock and runs jobs day or night. Learn how to configure and maintain cron, and discover just some of its many uses. read more... |
|
| | permapage | score:2899 | -cyberpead, October 10, 2008 |
|
|