Need some serious help here*new to this*

nnCron and nnCron LITE discussion

Need some serious help here*new to this*

Postby jeyleno » Sun, 21 Feb 2010, 20:04

Hi i need help setting up a cron job meant to do this

every 30 mins, check all files in a directory with a certain extension(I.e "whatever(.jpg)the extension") if any file's time of creation = more than or equal to 2 hours ago then delete that specific file or files


thanks in advance!
jeyleno
 
Posts: 1
Joined: Sun, 21 Feb 2010, 19:55

Re: Need some serious help here*new to this*

Postby SeMa » Wed, 24 Feb 2010, 17:38

every 30 mins

http://www.nncron.ru/help/EN/working/task/time.htm

check all files in a directory with a certain extension(I.e "whatever(.jpg)the extension")

http://www.nncron.ru/help/EN/commands/f ... m#FORFILES

jeyleno wrote:if any file's time of creation = more than or equal to 2 hours ago

http://www.nncron.ru/help/EN/working/pl ... .htm#FTIME

jeyleno wrote:then delete that specific file or files

http://www.nncron.ru/help/EN/commands/f ... FILEDELETE
Компьютер ─ устройство, разработанное для ускорения и автоматизации человеческих ошибок
User avatar
SeMa
 
Posts: 637
Joined: Fri, 15 Apr 2005, 12:49
Location: Украина


Return to nnCron forum (English)

Who is online

Users browsing this forum: No registered users and 2 guests

cron