
Cure
User
Apr 20, 2000, 7:14 AM
Post #2 of 2
(259 views)
|
|
Re: Crontab to delete a directory
[In reply to]
|
Can't Post
|
|
Hi To use contrab to delete a directory-> make a script that removes the directory, and add an entry for the script to the crontab. The script that will delete a directory --> #!/usr/bin/perl $dir = 'cure'; #the name of the directory is cure mkdir $dir,'0755'; chmod(0755, $dir); To setup the crontab ->(use telnet) <crontab> you can edit commands with crontab -e (for vi - mode) and crontab -l to see it. Cure [This message has been edited by Cure (edited 04-20-2000).]
|