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

Re: Cron Quiz



On Fri, 2002-08-30 at 10:24, Nigel Wade wrote:
> On Friday 30 Aug 2002 7:27 am, karlp ourldsfamily com wrote:
> > 1. Write me a cron that would move a file on the last day of each month.
> >
> 
> You call yourself a "Senior Consulting Systems Analyst" and you can't manage 
> this yourself? Hmm...
> 
> As its name implies, this list is to provide assistance with installing 
> RedHat, if you need help with your homework try Usenet.
> 
Nigel, as the name implies this is no list to offend people with either.
Analyst and Administrator is quite some difference IMHO.

Anyway Karl,

A 1-2:  0 10 * 31 *   mv filename "filename`date +%m%d%y`"

This will move the file  31th every month (that has 31 days) at 10 am.
That should give you a hint on how to do it Karl.

But otherwise try man 5 crontab to see how you set it up on your own.

-- 
Med vänliga hälsningar / Sincerely
Stefan Wold           Vxl: +46 8 56311000  Song Networks AB
Staff, Sysadmin UNIX  Fax: +46 8 56311010  AGA / Dalénum, Hus 112, 3TR
                      Mob: +46 701 880093  181 70 Lidingö
                      Tel: +46 8 56311093  Sweden





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