This is a discussion on Shell Script to Automatically Delete a File via Cron Job within the Shell scripting forums, part of the Development/Scripting category; Hi Friends, This is gowtham,i am facing one problem for the past two days,i.e i want delete the files from ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Hi Friends,
This is gowtham,i am facing one problem for the past two days,i.e i want delete the files from folder for every one min,can any body help me what is the path for deletion of that folder. I am facing this problem with Redhat Linux 5.0. I am thinking that I need a script. Thank you. Last edited by root; 01-28-2008 at 10:22 PM. Reason: Fixed typo and bad english |
| Sponsored Links | ||
|
|
|
||||
|
You need to use cron job
Code:
* * * * * /bin/rm /path/to/folder/* How do I add jobs to cron under Linux or UNIX oses?
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
|
|||
|
Quote:
thank u my frnd |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tomcat shell script cron job to restart server | kasimani | Shell scripting | 4 | 05-03-2008 07:46 PM |
| Shell script to kill process Automatically after 3 days | darknet | Shell scripting | 3 | 12-21-2007 10:46 PM |
| shell script for ftp the file | vishal_titre | Shell scripting | 3 | 12-10-2007 08:40 AM |
| Shell script to delete a file with a dialog utility | shankar100 | Shell scripting | 4 | 03-02-2007 10:22 AM |
| error shell script no such file or directory /bin/sh | Linux software | 1 | 01-08-2006 08:34 PM | |