Linux / UNIX Tech Support Forum
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 ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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; 28-01-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. What's wrong? I hope I am not making you uncomfortable... Never send a boy to do a mans job. |
|
|||
|
Quote:
thank u my frnd |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script to kill process Automatically after 3 days | darknet | Shell scripting | 4 | 02-11-2009 12:40 AM |
| [Solved] Shell script for ftp the file | vishal_titre | Shell scripting | 4 | 21-08-2009 03:50 PM |
| Tomcat shell script cron job to restart server | kasimani | Shell scripting | 4 | 03-05-2008 07:46 PM |
| Shell script to delete a file with a dialog utility | shankar100 | Shell scripting | 4 | 02-03-2007 10:22 AM |
| error shell script no such file or directory /bin/sh | Linux software | 1 | 08-01-2006 08:34 PM | |