On Thu, 2002-06-06 at 06:55, Michael wrote:
> On Wednesday 05 June 2002 04:13 am, you wrote:
>
> Yup, looks like it is from super methane brothers. How exactly would I make
> a cron script to delete the file, and what folder do I put them in?
>
your script would look like this:
#! /bin/sh
# delete the super mario sound file
if [ -e "/location/of/the/file/music.raw" ]; then
rm -f /location/of/the/file/music.raw
fi
make your script executable with the command:
chmod +x /where/you/put/the/script/scriptname
then to get crontab to run it (as root):
crontab -u root -e
This dumps you into vi. You may or may not like this ;-)
Make your crontab entry by pressing the "i" key to enter Insert mode,
then typing:
00 18 * * * /where/you/put/the/script/scriptname
(This would make it run at 18:00 each day. Check out the crontab
command for other options.)
Press Esc to exit from Insert mode, then type:
:wq
and press enter. This will write the file and exit.
HTH
Brian
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com