Sponsored Content
Full Discussion: file age
Top Forums Shell Programming and Scripting file age Post 26671 by jarmo.leppanen on Thursday 22nd of August 2002 04:24:59 AM
Old 08-22-2002
Question file age

How can I count the age of the file (e.g. in minutes)?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to find the File Age and wait for that...

Hi, I want to know my file is 1 hr 30 min old or not, If 1 hr 30 min old I will do some tasks in that file.. other wise I will wait to 1 hr 30 min and then do the tasks.. how to do it in Unix script? any idea? (3 Replies)
Discussion started by: redlotus72
3 Replies

2. Shell Programming and Scripting

Find the age of a file in Minutes

KSH: Please lt me know how to find the age of a file in minutes(Based on last modified time). ie, if the file was modified 15 Minutes ago, the output should be 15 (1 Reply)
Discussion started by: hari_anj
1 Replies

3. Shell Programming and Scripting

ksh - AIX: get epoch time/age for a file?

Hi, (AIX 5.1) Is there any way to find the epoch timestamp for a file without having to use fancy perl (or similar) scripts? If anyone knows of a way to do this using just ksh commands it would be appreciated. (It also appears I don't have the stat command available). Alternatively is... (3 Replies)
Discussion started by: b0bbins
3 Replies

4. Shell Programming and Scripting

Identify age of the file.

Hi all, I'm using SunOS. need to find age of the file in terms of seconds. The file name with its path will be given to the script as input. Any kinda help will be appreciated. Thanks in advance (7 Replies)
Discussion started by: bankimmehta
7 Replies

5. Shell Programming and Scripting

Perl Find file age

Hi I can not say that i am new to perl but today i learned something new, i wanted to know age (last time file got modified) of file so i initially thought of using find -mtime command but when i googled it, i found perl solution for the same my $age = -M $ARGV ; print "$ARGV age is... (1 Reply)
Discussion started by: zedex
1 Replies

6. Shell Programming and Scripting

Determine file age in days?

I am using AIX 6.1 and would like to use a one line command to determine the age of a file in days. I would like to look at a specific file. I would like to use the command to run on a remote server (AIX 6.1) to return the age of a specific file in days. So if the file is 42 days old I would... (2 Replies)
Discussion started by: oldman2
2 Replies

7. Shell Programming and Scripting

Calculate age of a file | calculate time difference

Hello, I'm trying to create a shell script (#!/bin/sh) which should tell me the age of a file in minutes... I have a process, which delivers me all 15 minutes a new file and I want to have a monitoring script, which sends me an email, if the present file is older than 20 minutes. To do... (10 Replies)
Discussion started by: worm
10 Replies

8. Shell Programming and Scripting

Age of file in storage / disk

Hello all, Below is scripts to find the file following by: 30 days <- How many total file space within 30 days and not quantity 90 days 120 days 1 year From here also I can get data space to put on PIE Chart. Following this scripts can I do some enhance from this scripts like do... (1 Reply)
Discussion started by: sheikh76
1 Replies

9. Shell Programming and Scripting

Check age of the file

hi, i am working on a shell script where i have 2 files & i need to check age of those files. one file should be of the same day and other shoudn't be more then 20 days old. how could i acheive this? please help!!!! (10 Replies)
Discussion started by: lovelysethii
10 Replies

10. UNIX for Dummies Questions & Answers

Age of file

Hi All.. Is there any easy way to find out how many days older is file? for ex. fileA 20 days fileB 10 days I am currently on AIX, and there is no STAT command available in this environment. What are my options? Thanks Abhijeet R (1 Reply)
Discussion started by: freakabhi
1 Replies
QSHAPE(1)						      General Commands Manual							 QSHAPE(1)

NAME
qshape - Print Postfix queue domain and age distribution SYNOPSIS
qshape [-s] [-p] [-m min_subdomains] [-b bucket_count] [-t bucket_time] [-l] [-w terminal_width] [-N batch_msg_count] [-n batch_top_domains] [-c config_directory] [queue_name ...] DESCRIPTION
The qshape program helps the administrator understand the Postfix queue message distribution in time and by sender domain or recipient domain. The program needs read access to the queue directories and queue files, so it must run as the superuser or the mail_owner specified in main.cf (typically postfix). Options: -s Display the sender domain distribution instead of the recipient domain distribution. By default the recipient distribution is dis- played. There can be more recipients than messages, but as each message has only one sender, the sender distribution is a message distribution. -p Generate aggregate statistics for parent domains. Top level domains are not shown, nor are domains with fewer than min_subdomains subdomains. The names of parent domains are shown with a leading dot, (e.g. .example.com). -m min_subdomains When used with the -p option, sets the minimum subdomain count needed to show a separate line for a parent domain. The default is 5. -b bucket_count The age distribution is broken up into a sequence of geometrically increasing intervals. This option sets the number of intervals or "buckets". Each bucket has a maximum queue age that is twice as large as that of the previous bucket. The last bucket has no age limit. -t bucket_time The age limit in minutes for the first time bucket. The default value is 5, meaning that the first bucket counts messages between 0 and 5 minutes old. -l Instead of using a geometric age sequence, use a linear age sequence, in other words simple multiples of bucket_time. This feature is available in Postfix 2.2 and later. -w terminal_width The output is right justified, with the counts for the last bucket shown on the 80th column, the terminal_width can be adjusted for wider screens allowing more buckets to be displayed without truncating the domain names on the left. When a row for a full domain name and its counters does not fit in the specified number of columns, only the last 17 bytes of the domain name are shown with the prefix replaced by a '+' character. Truncated parent domain rows are shown as '.+' followed by the last 16 bytes of the domain name. If this is still too narrow to show the domain name and all the counters, the terminal_width limit is violated. -N batch_msg_count When the output device is a terminal, intermediate results are shown each "batch_msg_count" messages. This produces usable results in a reasonable time even when the deferred queue is large. The default is to show intermediate results every 1000 messages. -n batch_top_domains When reporting intermediate or final results to a termainal, report only the top "batch_top_domains" domains. The default limit is 20 domains. -c config_directory The main.cf configuration file is in the named directory instead of the default configuration directory. Arguments: queue_name By default qshape displays the combined distribution of the incoming and active queues. To display a different set of queues, just list their directory names on the command line. Absolute paths are used as is, other paths are taken relative to the main.cf queue_directory parameter setting. While main.cf supports the use of $variable expansion in the definition of the queue_directory parameter, the qshape program does not. If you must use variable expansions in the queue_directory setting, you must specify an explicit absolute path for each queue subdirectory even if you want the default incoming and active queue distribution. SEE ALSO
mailq(1), List all messages in the queue. QSHAPE_README Examples and background material. FILES
$config_directory/main.cf, Postfix installation parameters. $queue_directory/maildrop/, local submission directory. $queue_directory/incoming/, new message queue. $queue_directory/hold/, messages waiting for tech support. $queue_directory/active/, messages scheduled for delivery. $queue_directory/deferred/, messages postponed for later delivery. LICENSE
The Secure Mailer license must be distributed with this software. AUTHOR(S) Victor Duchovni Morgan Stanley QSHAPE(1)
All times are GMT -4. The time now is 03:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy