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

Re: using cron



On Fri, Apr 22, 2005 at 04:08:24AM +0800, brandon wrote:
> Hi, suppose i want to run a backup script daily that zips up some of my 
> configuration files and place it in my home directory.
> 
> I created a file named backup, and put a single line command in it
> 
> tar -zcvf /home/brandon/backup.tar.gz2 /etc/fstab /etc/X11/XF86Config-4 

I guess you need to specify the interpreter, i.e. #!/bin/sh -- see
run-parts(8).

Almut



Reply to: