yeah, we run a script like once every few days to get rid of mp3s in home directories (windows home directories)
here it is:
/opt/sfw/bin/gfind /soc_vol0/home -type f ( -name "*.mp3" -o -name "*.MP3" ) -print0 | /opt/sfw/bin/gxargs -0 rm -f > /dev/null 2>&1
Just replace paths.... Should be able to do the same for other extensions. However, this does take awhile to run....depending upon the number of users and home directories you have.
Thanks,
Jason T.
-----Original Message----- From: Charles Roufay [mailto:Charles.Roufay@bluewater.com] Sent: Tuesday, August 12, 2003 4:19 AM To: 'Paul McGuinness (ext. 771)'; 'toasters@mathworks.com' Subject: RE: Blocking Files
hi,
This might be quite a difficult thing to acheive and might also impact performance if you have to filter alot of files.
You will be better of just doing a regular search on the filer for file the the .mp3 .mpeg etc and then deleting them.
Regards
-----Original Message----- From: Paul McGuinness (ext. 771) [mailto:Paul.McGuinness@fineos.com] Sent: dinsdag 12 augustus 2003 12:35 To: 'toasters@mathworks.com' Subject: Blocking Files
Hi Toasters,
is there any way of blocking certain file types from being saved to my filer. Prime examples: .mpeg, .mp3, .mov
F720 DataOnTap 6.3.1
Thanks Paul Mc Guinness Senior Systems Administrator
************************************************************************** The information contained in this e-mail is confidential, may be privileged and is intended only for the use of the recipient named above. If you are not the intended recipient or a representative of the intended recipient, you have received this e-mail in error and must not copy, use or disclose the contents of this email to anybody else. If you have received this e-mail in error, please notify the sender immediately by return e-mail and permanently delete the copy you received. This email has been swept for computer viruses. However, you should carry out your own virus checks.
Registered in Ireland, No. 205721. http://www.FINEOS.com **************************************************************************