Hi,
I need to remove files (*.trc) which are older than 30 days from one location.
My problem is there I do not want to visit any of the directories at that location. I want to search files at that particular location only (need to skip directorys at that location). maxdepth option is there... (6 Replies)
Hi All,
Could you please let me know if there is any one can help to create a shell script to remove some files which is the created date for them greate than 10 days (sysdate-10)
Please try to email me on email removed
Thanks in advance,
Murad (1 Reply)
Hi,
I'm Eddy from Belgium and I've the following problem.
I try to write a ksh script in AIX to tar, compress and remove the original *.wav files from the directory belgacom_sf_messages older than two days with the following commands.
The problem is that I do not find a good combination... (4 Replies)
Hi all,
I try to write shell script to the below requirement.
I have Hard coded the oratab location and take the list of databases from oratab and find out archive log locations for each database,
and list more than 3 days old files for each location and purge those.
... (2 Replies)
Dear Friends!
i am wirking on the IBM AIX version 5.3. and i wrote a script to delete the files whicha re generated on 10 days before to the present day. but iam not able to delete the files with the below script so please check and correct me.
dt=`TZ=aaa480 date +%d`... (2 Replies)
Hi
I need help in the script which looks at a contorl file which has a list of file names like xxxx.12345 and I want to take only xxxxx and search in a specific directory and remove the file if its older than 60 days
I have written something like this.. but seems to be wrong... (1 Reply)
Hi All,
I am new to the scripting and using solaris 10 OS. Please suggest me from the below script which modifications need to be done to delete the files more that 2days older. Current script is deleting existing file.
# Remove old explorer runs if needed
DIR=`dirname ${EXP_TARGET}`
if ... (2 Replies)
I am not able to extract/remove files older than 1000 days from a tar archive in linux system.
#!/usr/bin/perl
@file_list = `find /home/x/tmp/ -name *xxMsg* -ctime +7`;
$file_name = '/home/x/tmp/new_archive.tar';
for... (1 Reply)
Hi All,
Need help in identifying a shellscript command to remove all files on a server directory, starting with a certain prefix and also older than 3 days.
That means files created with that prefix, today or yesterday, shouldn't be removed.
Thanks,
Dev (3 Replies)
Discussion started by: dev.devil.1983
3 Replies
LEARN ABOUT SUNOS
uucleanup
uucleanup(1M) System Administration Commands uucleanup(1M)NAME
uucleanup - uucp spool directory clean-up
SYNOPSIS
/usr/lib/uucp/uucleanup [-Ctime] [-Dtime] [-mstring] [-otime] [-ssystem] [-Wtime] [-xdebug-level] [-Xtime]
DESCRIPTION
uucleanup will scan the spool directories for old files and take appropriate action to remove them in a useful way:
o Inform the requester of send/receive requests for systems that can not be reached.
o Return undeliverable mail to the sender.
o Deliver rnews files addressed to the local system.
o Remove all other files.
In addition, there is a provision to warn users of requests that have been waiting for a given number of days (default 1 day). Note: uucle-
anup will process as if all option times were specified to the default values unless time is specifically set.
This program is typically started by the shell uudemon.cleanup, which should be started by cron(1M).
OPTIONS -Ctime Remove any C. files greater or equal to time days old and send appropriate information to the requester (default 7 days).
-Dtime Remove any D. files greater or equal to time days old, make an attempt to deliver mail messages, and execute rnews when
appropriate (default 7 days).
-mstring Include string in the warning message generated by the -W option. The default line is "See your local administrator to
locate the problem".
-otime Delete other files whose age is more than time days (default 2 days).
-ssystem Execute for system spool directory only.
-Wtime Any C. files equal to time days old will cause a mail message to be sent to the requester warning about the delay in con-
tacting the remote. The message includes the JOBID, and in the case of mail, the mail message. The administrator may
include a message line telling whom to call to check the problem (-m option) (default 1 day).
-xdebug-level Produce debugging output on standard ouput. debug-level is a single digit between 0 and 9; higher numbers give more
detailed debugging information. (This option may not be available on all systems.)
-Xtime Any X. files greater or equal to time days old will be removed. The D. files are probably not present (if they were, the X.
could get executed). But if there are D. files, they will be taken care of by D. processing (default 2 days).
FILES
/usr/lib/uucp directory with commands used by uucleanup internally
/var/spool/uucp spool directory
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWbnuu |
+-----------------------------+-----------------------------+
SEE ALSO uucp(1C), uux(1C), cron(1M), attributes(5)SunOS 5.10 19 May 1993 uucleanup(1M)