I want to delete any file in unix file system which is older then a week.
Those files should not be unix system file..means it should be user created file.
Any clue to this ??
ASAP.
Thanks. (2 Replies)
i have to delete files which are older than 15 days or more except the ones in the directory Current and also *.sh files
i have found the command for files 15 days or more older
find . -type f -mtime +15 -exec ls -ltr {} \;
but how to implement the logic to avoid directory Current and also... (3 Replies)
Hi all,
I want to delete log files with extension .log which are older than 30
days. How to delete those files?
Operating system -- Sun solaris 10
Your input is highly appreciated.
Thanks in advance.
Regards,
Williams (2 Replies)
I want to write a shell script that deletes all log files in a directory that are older than 30 days except for 3 files:
I am using the following command:
find /tmp/logs -name "*.log" -mtime +30 -exec rm -f {} \;But this command deletes all the log files.
How can i modify this script that... (5 Replies)
Hi All,
I am using below code to delete files older than 2 days. In case if there are no files, I should log an error saying no files to delete.
Please let me know, How I can achive this.
find /path/*.xml -mtime +2
Thanks and Regards
Nagaraja. (3 Replies)
I am using SFTP to transmit files from the Mainframe to an UNIX server. I am looking for some kind of script that runs with SFTP to delete tranmitted files older than 3 days.
Can this be done in a SFTP transmission batch job? (5 Replies)
i am using HP-UX OS......
delete logs older than 60 days
find -mtime +60 | grep -i '.*log' | xargs rm
-mtime is nt available in HP-UX, pls tell me other option ? (2 Replies)
I need to list and delete all files in current older which are olderthan 7 days. But my file names have white spaces. Before deleting I want to list all the files, so that I can verify.find . -type f -mtime +7 | xargs ls -l {}
But the ls command is the working on the files which have white... (16 Replies)
I want to search 2 day older file and then delete last 10 line of that file. (2 Replies)
Discussion started by: sonu pandey
2 Replies
LEARN ABOUT OSF1
bouncesaying
bouncesaying(1) General Commands Manual bouncesaying(1)NAME
bouncesaying - perhaps bounce each incoming message
SYNOPSIS
in .qmail: |bouncesaying error [ program [ arg ... ] ]
DESCRIPTION
bouncesaying feeds each new mail message to program with the given arguments. If program exits 0, bouncesaying prints error and bounces
the message.
If program exits 111, bouncesaying exits 111, so delivery will be retried later.
If program exits anything else (or does not exist), bouncesaying exits 0, so the rest of .qmail will be processed as usual.
Note that it is not safe for program to fork a child that reads the message in the background.
If program is not supplied, bouncesaying always bounces the message:
|bouncesaying 'This address no longer accepts mail.'
WARNING: If you create a .qmail file to enable bouncesaying, make sure to also add a line specifying delivery to your normal mailbox.
SEE ALSO condredirect(1), except(1), dot-qmail(5), qmail-command(8)bouncesaying(1)