Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Script to find the files and delete them Post 302599081 by rbatte1 on Thursday 16th of February 2012 06:53:13 AM
Old 02-16-2012
Can you copy and paste the command entry and output to this thread along with other useful info such as the output from:-
Code:
uname -a
ps -f
id

Not sure what they may tell me, but it may give me/everyone else a pointer to think about.


Cheers,
Robin
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

A script to find dir, delete files in, and then del dir?

Hello!! I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory: drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
Discussion started by: bigben1220
3 Replies

2. Shell Programming and Scripting

'unexpected token' error using FIND in script to delete old files

Hi, I am compete linux noob, but have managed to setup my Thecus N5500 to rsync to my N5200Pro to do automatic backups each night. The rsync script also moves any files deleted from the N5500 (and previously backed up to the N5200) to a _deleted folder on the N5200 so I can keep them for 30... (10 Replies)
Discussion started by: rpalmer68
10 Replies

3. UNIX for Dummies Questions & Answers

find and delete files

hi all , i want to find and interactively delete all the files having size greater than 20 bytes using "find" and other commands..... (8 Replies)
Discussion started by: sonu_pal
8 Replies

4. Shell Programming and Scripting

find files for a particular date and delete

How can I delete files for a particular date ? I apologize in advance If there is solution please put the link. Thanks, (5 Replies)
Discussion started by: jville
5 Replies

5. Shell Programming and Scripting

Script to find files and delete it by comparing

I have a directory where lot of "gzip" files are dropped in every 5 minutes. There is an application which will process these gzip and move it to another directory but will leave a gzip.out file with lot of output data. I need to remove all the outfiles except for the one which is being... (1 Reply)
Discussion started by: gubbu
1 Replies

6. Shell Programming and Scripting

Perl Script to find the disk usage and to delete the files which is consuming more space

Hi All, I have written a script to check the file system usage and to delete the files which is consuming more space.Please check whether the script is corrcet #Script Starts here #!/usr/local/bin/perl #Program to find the disk space and to delete the older files #Checks the type of OS... (8 Replies)
Discussion started by: arunkarthick
8 Replies

7. Shell Programming and Scripting

Script to go Into Directories and Find/Delete files

I have a task, I usually do manually, but with growing responsibilities I tend to forget to do this weekly, I want to write a script that automates this, but I cant seem to work it out in my head, I have the shell of it out, but need help, and you guys have helped me with EVERY problem I have... (5 Replies)
Discussion started by: gkelly1117
5 Replies

8. Shell Programming and Scripting

Find modify and delete files

hi every one. one of my friends has writen this script and send it to me. this script can find files that add-delete-modify and also send an alert by email i'm not catch all part of it. can anyone explain me how this work #!/bin/bash START="a.txt" END="b.txt" DIFF="c.txt" mv ${START}... (4 Replies)
Discussion started by: nimafire
4 Replies

9. Shell Programming and Scripting

Find command to delete the files

Hi All, I've created 2 files touch -t 201309101234 aa10 touch -t 201309111234 aa11 Exact 60 days before from today date is SEPT 12th . As per the following command as i gave +60 means the files which were created before sept12th should be deleted find /etc/logs/*aa* -type f -atime +60... (5 Replies)
Discussion started by: smile689
5 Replies

10. Shell Programming and Scripting

Script needed to delete to the list of files in a directory based on last created & delete them

Hi My directory structure is as below. dir1, dir2, dir3 I have the list of files to be deleted in the below path as below. /staging/retain_for_2years/Cleanup/log $ ls -lrt total 0 drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2 drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies
pure-quotacheck(8)						     Pure-FTPd							pure-quotacheck(8)

NAME
pure-quotacheck - Update virtual quota files for Pure-FTPd SYNTAX
pure-quotacheck -u username/gid -d home directory [-g group/gid] DESCRIPTION
pure-quotacheck create a .ftpquota file in the specified directory. This file contains the current file and size of the directory, and it is used by Pure-FTPd when virtual quotas are enabled. It's recommended to periodically run pure-quotacheck for every user, in crontabs. OPTIONS
-d <directory> Scans the specified <directory>. -g <group or gid> Sets the group files will be scanned as. This is optional : if a user name is passed to -u</fR>, group are automatically retrieved. -u <user or uid> Set the user name files will be scanned as. This is mandatory, and it can't be "root". -h Output usage information and exit. FILES
.ftpquota EXAMPLES
To run this program the standard way type: pure-quotacheck -u john -d /home/john AUTHORS
Frank DENIS <j at pureftpd dot org> SECURITY
pure-quotacheck switches real and effective uids/gids as soon as possible. Root privileges are never given back. pure-quotacheck refuses to scan directories with uid = 0 (root) or gid = 0 (wheel/root) . pure-quotacheck performs a chroot() call to the home directory. It never traverses parent directories. pure-quotacheck only scans real files (no socket, no pipe, etc) . pure-quotacheck enforces read access on directories to prevent against people doing chmod 0 before a quota scan. pure-quotacheck enforces write access on the home directory to properly write the .ftpquota file. pure-quotacheck never scans the same inode/device pair twice. SEE ALSO
ftp(1), pure-ftpd(8) pure-ftpwho(8) pure-mrtginfo(8) pure-uploadscript(8) pure-statsdecode(8) pure-pw(8) pure-quotacheck(8) pure-authd(8) RFC 959, RFC 2228, RFC 2389 and RFC 2428. Pure-FTPd team 1.0.36 pure-quotacheck(8)
All times are GMT -4. The time now is 01:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy