Click to See Complete Forum and Search --> : Simple Crontab Question


Laslo7
11-08-2001, 12:29 PM
Hello All

My question is this:
Can you issue multiple command in a cronjob?
Example:

0 */2 * * * cp /path/to/file1 /path/to/file2
echo date > /path/to/file3
cat /path/to/file1 >>/path/to/file2 >> /path/to/file3

these are just simple examples I thought of.

AJ

X_console
11-08-2001, 12:30 PM
Sure. Separate them with semicolons, or just put it all in a shell script and call the shell script through crontab.