{"id":3298,"date":"2014-10-25T00:34:14","date_gmt":"2014-10-25T00:34:14","guid":{"rendered":"http:\/\/www.fingerpost.co.uk\/wp\/programme-documentation\/ipdelque\/"},"modified":"2014-10-25T00:34:14","modified_gmt":"2014-10-25T00:34:14","slug":"ipdelque","status":"publish","type":"page","link":"https:\/\/www.fingerpost.co.uk\/wp\/programme-documentation\/ipdelque\/","title":{"rendered":"ipdelque  (Sat Oct 25 2014 01:31:01)"},"content":{"rendered":"<pre>\nipdelque\n\nThis program deletes files from a queue. This can be a single shot (default) or\nyou can specify a delay which the program will wait before restarting ad\ninfinitum.\n\nNormally a 30 second wait is applied before the program starts in case the\nwrong queue etc has been selected.\n\nOptionally only files that are older (ie last time modified) than a certain\nnumber of days or minutes can be deleted. This can be changed to checking\ncreation time by input switch -c.\n\nFor queues that accept networked files, a file creep time can be set.\n\nIPDELQUE is often used in the nightly maintenance script ZAPFIPLOG to trim\nholding queues and sundry save areas.\n\nStrings in data can be searched and files deleted or NOT accordingly using the\n-g\/-G switch (plus -s for case sensitivity if necessary).\n\teg: ipdelque -q yuko -g &quot;txtclass=edito*&quot;\nwill delete files containing txtclass=edito* in \/fip\/spool\/yuko.\n\t(Note the * is NOT a wild card here so we have quoted the string)\n\nFilenames can be checked too with -k or -K.\n\teg: ipdelque -q zibbo -K ttt\nwill delete all files in zibbo EXCEPT those with '.ttt' somewhere in the name\n\n\nInput parameters are :\n\tMandatory :\n\t-q : input queue name\t\t\t\tdefault: none\n\t\tThis can be a full pathname starting '\/'\n\t\tor a relative to current path if starting '.' as in '.\/xyz'\n\t\totherwise it is assumed to be a queue under \/fip\/spool.\n\tOptional :\n\t-l : log all deleted files\n\t\tdefault: normally only one QUEUE DELETED msg appears\n\t-L : do NOT log if no files were deleted\tdefault: (as above)\n\t-f : file wait\t\t\t\t\tdefault: 0\n\t\t(ie wait x secs for file to finish before processing)\n\t-t : sleep between scans of the directory.\tdefault: run once only\n\t\tThe minimum scan time is 10 seconds -t 10\n\t-m : delete files if more than x days only\tdefault: all files\n\t\tThis deletes all files up to midnight before the day.\n\t-M : delete files if more than x mins only\tdefault: all files\n\t-c : check time of creation\t\t\tdefault: last modify\n\t-C : check file name\t\t\t\tdefault: no checking beforehand\n\t\tonly zap files if this checkfile exists\n\t\tThis is to check that UNC, NAS and other remote drives are actually\nmounted\/accessible beore deleting\n\t-i : wait in secs before starting to delete\tdefault: wait 30 secs\n\t\t-i 10\twait 10 seconds beforehand\n\t\t-i 0\tdo NOT wait before deleteing\n\t\tIf the '-t' switch (spooling) is also on, this wait is\n\t\tapplied to the FIRST scan only, after which it is ignored.\n\t-r : delete any Mac Resource forks in .\/.rsrc\tdefault: no\n\t-k : filename mask - if present, \t\tdefault: all files\n\t\tdelete THIS file but NOT those without it.\n\t-K : filename mask - if present,\t\tdefault: all files\n\t\tdo NOT delete THIS file but delete those without it.\n\t-g : search string in data - if present, \tdefault: all files\n\t\tdelete THIS file but NOT those without it.\n\t-G : search string in data - if present, \tdefault: all files\n\t\tdo NOT delete THIS file but delete those without it.\n\t-s : search string is case SENSitive\t\tdefault: case insens.\n\t-h : for search string in data, ignore the FipHdr. default: all data\n\t-E : add ExtraFipHdr information\t\tdefault: none\n\t-a : age subqueues in this queue\t\tdefault: no\n\t\tsyntax is -a 8 for eight days worth\n\t\t- move any files in the queue to a new subqueue called\n\t\t\t(queue)\/(queue).CCYYMMDD\n\t\t- if the subparameter &gt; 0, zap any subqueues older\n\t\t\tthan that number of days\n\t-A : age subqueues and files in this queue\tdefault: no\n\t\tSyntax is -A 3 for deleting all queues over 3 days old\n\t\tThis variation is for queues that begin\tYYMMDD or YYYYMMDD\n\t\t\teg\t970925-reuters\n\t\t\t\t20001231-31223-SPORTS\n\t\tAll files or queues older than the date the program is run\n\t\t(minus the subparameter) are deleted.\n\t\tAny files or queues whose name does not start with a date\n\t\tare ignored.\n\t-OLD : for -a make the aged queue YYMMDD not CCYYMMDD\n\t-d : WINNT only drive letter for queue\tdefault: drive Fip started on\n\t-Q : DO NOT create the folder if it does not exist\tdefault: create\n\t-R : DestRedun Pseudo host when checking from 2 or more systems\n\t\tonly the primary host actually does the delete\tdefault: delete\n\t\tEg if there is an entry in the tables\/sys\/DEST_REDUN file :\n\t\t\tnassvr\tfip-l01v-p\tfip-l02v-p\n\t\tand you run ipdelque -R nassvr -q \/uncdrive\/somefolder\/subq\/\n\t\tthen fip-l02v-p will only run the delete if fip-l01v-p is down\n\t\tUsually, this is run to zap on shared drives in conjunction with -C (chkfile)\n\t-T : do NOT delete any files starting with a dot\tdefault: delete\n\t-X : just display filename that should be zapped (ver 08k+ only) def: delete\n\t-v : version no and exit\n\nFrom version 08k onwards there is also a -X input switch which displays the\nfiles that would be deleted - BUT does not delete ! All previous version just\nzap !\n\n\nVersion Control\n;008p10\t25sep97 added -A and -d\n\t;a 8oct97 added rmdir for NT\n\t;b 1may98 -a\/-A now zaps queues on too\n\t;c\/d 20dec99 BUG -a\/-A and 00-&gt;100\n\t;e 12oct00 -A now zaps files (and folders) called '20001006.etc'\n\t;f 20nov00 allow spaces in WINNT folder names for -A\n\t;g 10jul02 zap res fork files too\n\t;h 03mar04 added -L\n\t;i 29nov04 bugette with spooled version not changing -m:BAD MOD PLS DONT USE\n\t;j-m 09feb05 reworked those times\/dates again and added -X and better Winnt\nlog drive\n\t;n 02may06 -t 0 is now invalid - minimum time is 10 secs\n\t;o 17jun06 added -Q\n\t;p5 18jul06 bugette minutes -M 3 not working correctly ;2 cosmetic ;3-4\nwin-use del \/S \/F \/Q\n\t\t;5 *nix- top and tail with apos\n\t\t;6 allow Fipseq for -q queue and -E (extraFipHdr)\n\t\t\teg ipdelque -q \/fip\/data\/raw.data\/$e$y$i$d_ap -i 0 -M 2\n\t\t;7-8 27jan13 added -R DestRedun Pseudo host when checking from 2 or more\nsystems and -C chkfile\n\t\t;9-10 Linux NFS fudge - false ELOOP on readdir -\nhttps:\/\/bugs.centos.org\/view.php?id=6161\n\n(copyright) 2014 and previous years FingerPost Ltd.\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ipdelque This program deletes files from a queue. This can be a single shot (default) or you can specify a delay which the program will wait before restarting ad infinitum. Normally a 30 second wait is applied before the program starts in case the wrong queue etc has been selected. Optionally only files that are [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":495,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"page-templates\/full-width.php","meta":[],"_links":{"self":[{"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/pages\/3298"}],"collection":[{"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/comments?post=3298"}],"version-history":[{"count":0,"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/pages\/3298\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/pages\/495"}],"wp:attachment":[{"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/media?parent=3298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}