Knowledgebase

checking for mp3's/avi's

Posted by blitz-host, 07-02-2005, 04:33 PM
hello, is there any form of a script i can install that checks my clients files for things like mp3's/avi's/.exe's?

Posted by IWorx-Tim, 07-04-2005, 01:40 AM
Here's a simple bash script which should do the trick Just save it as locate.sh and set a cron to run it as desired and mail the results to you. Make sure to chmod +x to make it executable. Tim

Posted by firestarter, 07-04-2005, 09:11 AM
It will do the search for the mp3, exe, avi . Before running this manually or through the cron dont forget to run the updatedb &. It will update the slocatedatabase so that you get latest results. Last edited by firestarter; 07-04-2005 at 09:15 AM.

Posted by phpcoder, 07-04-2005, 09:56 AM
It depends if you have SSH access enabled or not. If you don't have SSH access there is really nothing that you can do but if you do have SSH you can use some type of bash script like above.

Posted by IWorx-Tim, 07-04-2005, 01:46 PM
some control panels will let you run crontabs as root/psudo root from the control panel. Just add updatedb to the beginning of the script above.

Posted by W4 Hosting, 07-04-2005, 02:29 PM
thx TranswarpHos and firestarter. I never know that.

Posted by IWorx-Tim, 07-04-2005, 02:33 PM
I just takjed to my friend Socheat and did some digging and voila Feel free to use, modify, and distribute.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read


Language:

Client Login

Email

Password

Remember Me

Search