0 Пользователей и 1 Гость просматривают эту тему.
$timex = get-date$timex = $timex.AddDays(-7)dir | where {$_.lastwritetime -le $timex} | del -whatif
Кажется что то нашел...Код: [Выделить]$timex = get-date$timex = $timex.AddDays(-7)dir | where {$_.lastwritetime -le $timex} | del -whatif
<?php $path = 'ftmp/'; if ($handle = opendir($path)) { while (false !== ($file = readdir($handle))) { if ((time()-filectime($path.$file)) < 86400) { if (preg_match('/\.pdf$/i', $file)) { unlink($path.$file); } } } }?>
cd /home/user1/testwhile [ `ls -lAR | grep ^- | wc -l` < 3 ] ; do rm `ls -t1 /home/user/test | tail -1` echo " - - - "done
так надо с фтп удалять или локально?
да я подумал а фигли я мозг морочу, если могу пускать скрипт на ftp сервере