Forum Moderators: open

Message Too Old, No Replies

Cron Job Help!!

Help

         

vin16

3:09 am on Dec 30, 2001 (gmt 0)



Hi,

I need a cron job to delete all the files with
the extension .ram in the path /home/public/ram

Please help me out.........

Vins

Air

4:20 am on Dec 30, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld vin16.

If you are using bash, here is some sample code to delete your files.

#! /bin/bash
rm -f /home/public/ram/*.ram

Just save that in a file and chmod to make it executable (make sure you test before using it full tilt)

As for setting it up as a cron job, check out the following threads, between the two you should be well on your way.

[webmasterworld.com...]
[webmasterworld.com...]