[Samba] Re: PDC Administrative scripting
Michael Lueck
mlueck at lueckdatasystems.com
Thu Jul 8 15:11:09 GMT 2004
Sounds like the perfect task for IBM's Object Rexx language which they offer for free on Linux
http://www-306.ibm.com/software/awdtools/obj-rexx/
/* Sample code to search and destory! */
searchlist='.mp3 .wav .avi'
do s=1 to searchlist~words()
rc=SysFileTree('/homes/*'searchlist~word(s), filelist., 'FOS')
if filelist.0>0 then do f=1 to filelist.0
rc=SysFileDelete(filelist.f)
end
end
Of course you could add logging, etc... as fancy as you want to get.
--
Michael Lueck
Lueck Data Systems
Remove the upper case letters NOSPAM to contact me directly.
More information about the samba
mailing list