| Blogs | Classifieds | Downloads | FlashChat | Gallery | Googlemap | Invite Friends | Links | Projects | Reviews | Wiki |
| |||||||||
Welcome to the pSeries Tech Forums,
our free peer-based support site for administrators, engineers and architects working with IBM pSeries servers and software. You are currently viewing our site as a guest which gives you limited access to view most discussions, articles, tutorials and access our other free features. By joining our community you will be able to collaborate with administrators, engineers and architects charged with designing, delivering or maintaining IBM pSeries server environments. Founded by a recognized IBM pSeries consultant and IBM Redbook author, pSeries Tech Forums was developed with the single mission of bringing IBM pSeries professionals together into a single self-help community. Registration is fast, simple and absolutely free to all IT professionals with responsibility for or interest in IBM pSeries servers. We invite you to join our community today! If you have any problems with the registration process or your account login, please contact contact support. |
| Our Sponsors | |
| | |
| Want to advertise? | |
![]() |
| | LinkBack | Thread Tools |
|
#1
| ||||
| ||||
Dear All, I am not able to remove the files in my AIX server. My files List /iims-home/data/uat1/batch/staging -rw-r--r-- 1 iims iims 5743 Jun 12 09:04 ErrorReport2008-05-20 09-04-18.doc -rw-r--r-- 1 iims iims 191213683 Jun 12 09:05 ErrorReport2008-05-20 09-05-19.doc -rw-r--r-- 1 iims iims 456571 Jun 12 09:06 ErrorReport2008-05-20 09-06-06.doc -rw-r--r-- 1 iims iims 2675 Jun 12 09:07 ErrorReport2008-05-20 09-07-48.doc -rw-r--r-- 1 iims iims 5743 Jun 12 09:09 ErrorReport2008-05-20 09-09-29.doc -rw-r--r-- 1 iims iims 2675 Jun 12 09:12 ErrorReport2008-05-20 09-12-55.doc -rw-r--r-- 1 iims iims 5743 Jun 12 09:14 ErrorReport2008-05-20 09-14-40.doc -rw-r--r-- 1 iims iims 2675 Jun 12 09:18 ErrorReport2008-05-20 09-18-02.doc -rw-r--r-- 1 iims iims 5743 Jun 12 09:19 ErrorReport2008-05-20 09-19-51.doc -rw-r--r-- 1 iims iims 191670648 Jun 12 09:22 ErrorReport2008-05-20 09-21-34.doc -rw-r--r-- 1 iims iims 909134 Jun 12 09:22 ErrorReport2008-05-20 09-22-21.doc -rw-r--r-- 1 iims iims 2675 Jun 12 09:23 ErrorReport2008-05-20 09-23-09.doc -rw-r--r-- 1 iims iims 5743 Jun 12 09:24 ErrorReport2008-05-20 09-25-03.doc if i give the following command it is not working find /iims-home/data/uat1/batch/staging/ -name "ErrorReport2008-*" -mtime +1 -exec /bin/rm {} \; When i try to do ls command also failing? bash-3.00# ls -ltr ErrorReport2008-05-20 05* ls: 0653-341 The file ErrorReport2008-05-20 does not exist. ls: 0653-341 The file 05* does not exist. i think in file name there is a space (between bold letters). ErrorReport2008-05-20 09-21-34.doc Per day these files are creating around 30 GB. So if I want to delete one day older files (or) every hour files, how can I do that? Please help me on this.. Thanks & Regards, BVIJAY |
|
#2
| ||||
| ||||
Easiest is to change whatever is creating the files to get rid of the space character. This is always problematic for scripts, and will continue to cause you problems for the years to come. For one off cases you need to preceed the space character with a \ character thus: ls -ltr ErrorReport2008-05-20\ 09-25-03.doc
__________________ Ross Mather, IBM AIX IT Specialist. That said anything I say here is my own opinion and not anything that you can ever hold against IBM. Ohhh and don't forget that I make mistakes too.... |
![]() |
| Bookmarks |
| Tags |
| day, delete, files, wise |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |