Delete directory after 3 days


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Delete directory after 3 days
# 8  
Old 05-06-2010
What is the output from:

Code:
uname -a

Is there only one computer involved here? i.e. no NFS or physical re-plugging of discs.
# 9  
Old 05-06-2010
Quote:
Originally Posted by methyl
Something awful is happening here. It appears that your find command is erroring on files which are larger than 2Gb (2147483648 bytes). I have never seen this on a system which allows files larger than 2Gb, only where an old Operating System is presented with large files (>2Gb) created on a new Operating System.

What is the Operating System and version?
Might not be Solaris, some older versions of Veritas (3.x for example) limit file sizes to 2GB by default. Is this a Veritas volume and filesystem?
# 10  
Old 05-06-2010
Solaris 10 sets maximum file size to unlimited by default.
Solaris 9 sets the maximum file size to 2GB by default.

You may check to see what options were declared when the filesystem was mounted with the following command:
Code:
# mount

Ideally, you'll want to see options like:
Code:
read/write/setuid/intr/largefiles/xattr/...

# 11  
Old 05-07-2010
Hi Guys more info as requested......

Code:
root@adclick-winn:~ 0 # uname -a
SunOS adclick-winn.server.virgin.net 5.9 Generic_122300-26 sun4u sparc SUNW,Sun-Fire-V240

Code:
root@adclick-winn:~ 0 # mount
/ on /dev/md/dsk/d10 read/write/setuid/intr/largefiles/logging/xattr/onerror=panic/dev=154000a on Sat Jan 23 04:30:12 2010
/proc on /proc read/write/setuid/dev=4280000 on Sat Jan 23 04:30:11 2010
/etc/mnttab on mnttab read/write/setuid/dev=4340000 on Sat Jan 23 04:30:11 2010
/dev/fd on fd read/write/setuid/dev=4380000 on Sat Jan 23 04:30:12 2010
/var on /dev/md/dsk/d40 read/write/setuid/intr/largefiles/logging/xattr/onerror=panic/dev=1540028 on Sat Jan 23 04:30:13 2010
/var/run on swap read/write/setuid/xattr/dev=1 on Sat Jan 23 04:30:13 2010
/tmp on swap read/write/setuid/xattr/size=512m/dev=2 on Sat Jan 23 04:30:31 2010
/export on /dev/md/dsk/d50 read/write/setuid/intr/largefiles/logging/xattr/onerror=panic/dev=1540032 on Sat Jan 23 04:30:31 2010
/opt on /dev/md/dsk/d60 read/write/setuid/intr/largefiles/logging/xattr/onerror=panic/dev=154003c on Sat Jan 23 04:30:33 2010
/data01 on /dev/md/dsk/d80 read/write/setuid/intr/largefiles/logging/xattr/onerror=panic/dev=1540050 on Sat Jan 23 04:30:36 2010
root@adclick-winn:~ 0 #


Last edited by vgersh99; 05-07-2010 at 12:30 PM.. Reason: code tags, please...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Delete files 30 days old

Will this work to delete files 30 days old in $backupDir or is there a better way to do it? find $backupDir -type f -mtime +30 -exec rm {} \; (2 Replies)
Discussion started by: wyclef
2 Replies

2. AIX

Want to delete directory, subdirectories and all files which are older than 7 days

how do i remove sub directories of a directory and all files which are older than 7 days by a single command in AIX. pls help me. I am using command as #find /gpfs1/home/vinod/hpc/ -depth -type d -mtime +7 -exec rm -rf {} \; so i want to delete all sub directories and all files from the... (1 Reply)
Discussion started by: vinodkmpal
1 Replies

3. Shell Programming and Scripting

Delete files older than 10 Days in a directory

Hi All I want to remove the files with name like data*.csv from the directory older than 10 days. If there is no files exists to remove older than 10 days, It should not do anything. Thanks Jo (9 Replies)
Discussion started by: rajeshjohney
9 Replies

4. Shell Programming and Scripting

Delete a directory after X number of days

Hi How do I remove a directory which are some days old . For Ex : $ cd /WMID/data/temp/TxTest/Dev/txStore $ ls -ltr total 0 drwxr-xr-x 3 wmethods wmapp 80 Jul 21 03:36 0AE445C4 drwxr-xr-x 3 wmethods wmapp 80 Jul 21 04:00 0AE44664 drwxr-xr-x 3 wmethods... (6 Replies)
Discussion started by: leo76
6 Replies

5. Shell Programming and Scripting

Delete a file after 3 days

Hi.. Am using diff to compare 2 directories(A & B) and as ouput i get a list of files which are found only in directory B ( I used grep & sed to create the list). Now I want to delete the files which are found only in dir B after 3 days. Please help me with this. Thanks CoolAtt (7 Replies)
Discussion started by: coolatt
7 Replies

6. Shell Programming and Scripting

delete three days from date

i want to delete three days from system date ... date -3 (4 Replies)
Discussion started by: r_t_1601
4 Replies

7. UNIX for Dummies Questions & Answers

Delete last 10 days logs

Hi Can u please tell me how to delete last 10 days logs .. (9 Replies)
Discussion started by: pb18798
9 Replies

8. Shell Programming and Scripting

ls latest 4 days or specify days of files in the directory

Hi, I would like to list latest 2 days, 3 days or 4 days,etc of files in the directory... how? is it using ls? (3 Replies)
Discussion started by: happyv
3 Replies

9. UNIX for Dummies Questions & Answers

How to delete files over 30 days

I have a directory that contains files. I would like the command that deletes all files that are over 30 days old. Delete files based on creation date and not modified. (2 Replies)
Discussion started by: GEBRAUN
2 Replies

10. UNIX for Dummies Questions & Answers

How to delete files which are 7 days old

Hi all, how to write a script that will indentify the files in a directory which are 7 days old and delete those files. Thanks in advance Cheers Arunava (8 Replies)
Discussion started by: arunava_maity
8 Replies
Login or Register to Ask a Question