09-22-2011
Yup .. missed it due to sleepless nights
Thanks ..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
can anyone tell me how I would write a script in ksh on AIX that will delete files in a directory older than 7 days? (1 Reply)
Discussion started by: lesstjm
1 Replies
2. UNIX for Advanced & Expert Users
My code is
tar -cvf logs.tar `find /usr/openv/logs/512*.log -mtime +2` && find *.log* -mtime +2 -exec rm {} \;
this gives me output as:
tar: Missing filenames:confused: (1 Reply)
Discussion started by: timus1980
1 Replies
3. Shell Programming and Scripting
Hi, All,
I'd like to delete files older than 1 day.
I thought the following command
find /your_directory -mtime +1-exec rm -f {} \;
will do the work, but not so, it seems like it won't delete files unless it is 2 days old or older. the files between 1 day and 2 days old does not... (7 Replies)
Discussion started by: ericaworld
7 Replies
4. UNIX for Dummies Questions & Answers
This is driving me crazy. How can I delete files in a specifc directory that are over 30 days old? Thanks in advance. (3 Replies)
Discussion started by: tlphillips
3 Replies
5. Shell Programming and Scripting
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)
Discussion started by: ali560045
3 Replies
6. Solaris
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)
Discussion started by: William1482
2 Replies
7. Shell Programming and Scripting
Dear all,
i use incremental backup my data with .zip to my hard drive. what i need is i don't want the old .zip file older than 30 days. how to write a shell script automatically remove my external hard disc zip backup folders older than 30 days?
Regards, (2 Replies)
Discussion started by: joneggk
2 Replies
8. Shell Programming and Scripting
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)
Discussion started by: Nagaraja Akkiva
3 Replies
9. UNIX for Dummies Questions & Answers
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)
Discussion started by: Steve Carlson
5 Replies
10. Shell Programming and Scripting
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)
Discussion started by: only4satish
2 Replies
LEARN ABOUT DEBIAN
memdump
MEMDUMP(1) General Commands Manual MEMDUMP(1)
NAME
memdump - memory dumper
SYNOPSIS
memdump [-kv] [-b buffer_size] [-d dump_size] [-m map_file] [-p page_size]
DESCRIPTION
This program dumps system memory to the standard output stream, skipping over holes in memory maps. By default, the program dumps the con-
tents of physical memory (/dev/mem).
Output is in the form of a raw dump; if necessary, use the -m option to capture memory layout information.
Output should be sent off-host over the network, to avoid changing all the memory in the file system cache. Use netcat, stunnel, or
openssl, depending on your requirements.
The size arguments below understand the k (kilo) m (mega) and g (giga) suffixes. Suffixes are case insensitive.
Options
-k Attempt to dump kernel memory (/dev/kmem) rather than physical memory.
Warning: this can lock up the system to the point that you have to use the power switch (for example, Solaris 8 on 64-bit SPARC).
Warning: this produces bogus results on Linux 2.2 kernels.
Warning: this is very slow on 64-bit machines because the entire memory address range has to be searched.
Warning: kernel virtual memory mappings change frequently. Depending on the operating system, mappings smaller than page_size or
buffer_size may be missed or may be reported incorrectly.
-b buffer_size (default: 0)
Number of bytes per memory read operation. By default, the program uses the page_size value.
Warning: a too large read buffer size causes memory to be missed on FreeBSD or Solaris.
-d dump-size (default: 0)
Number of memory bytes to dump. By default, the program runs until the memory device reports an end-of-file (Linux), or until it has
dumped from /dev/mem as much memory as reported present by the kernel (FreeBSD, Solaris), or until pointer wrap-around happens.
Warning: a too large value causes the program to spend a lot of time skipping over non-existent memory on Solaris systems.
Warning: a too large value causes the program to copy non-existent data on FreeBSD systems.
-m map_file
Write the memory map to map_file, one entry per line. Specify -m- to write to the standard error stream. Each map entry consists
of a region start address and the first address beyond that region. Addresses are separated by space, and are printed as hexadecimal
numbers (0xhhhh).
-p page_size (default: 0)
Use page_size as the memory page size. By default the program uses the system page size.
Warning: a too large page size causes memory to be missed while skipping over holes in memory.
-v Enable verbose logging for debugging purposes. Multiple -v options make the program more verbose.
BUGS
On many hardware platforms the firmware (boot PROM, BIOS, etc.) takes away some memory. This memory is not accessible through /dev/mem.
This program should produce output in a format that supports structure information such as ELF.
LICENSE
This software is distributed under the IBM Public License.
AUTHOR
Wietse Venema
IBM T.J. Watson Research
P.O. Box 704
USA
MEMDUMP(1)