04-26-2008
Wow great, thanks a lot era!
Hope you don't mind a follow-up question, what if i want to store in a file all those existing statistics files? And just just put spaces on those missing files?
Example
==>
statistics.1;statistics.2;statistics.3;statistics.4;<space>;statistics.6;......statistics.19; <space>;statistics.21;......statistics.34;<space>;....statistics.50
Hmmm..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
a few of some live payroll files have been deleted / missing ... i've restored last nites backup ... what could be the possibilities of this strange occurance ... users have menus to work on and use these live files ... we run an aix box with a ksh shell. Where do I start ??
Thanks (4 Replies)
Discussion started by: cubicle^dweller
4 Replies
2. Shell Programming and Scripting
Hi,
I need a shell program that will prompt the user to input a dept name to the script.
The script should then check a specific directory called ‘report' in the home directory of each member of that dept.
If the report directory does not exist, or there are no contents in the directory,... (2 Replies)
Discussion started by: johnnyvlme
2 Replies
3. Shell Programming and Scripting
Hi ,
I 'm trying to check if multiple directories exist on a server, if not create the missing ones and print " creating missing directory.
how to write this in a simple script, I have made my code complex
if ; then
taskStatus="Schema extract directory exists, checking if SQL,Count and... (7 Replies)
Discussion started by: ramky79
7 Replies
4. Shell Programming and Scripting
Hi, all:
I've got two folders, say, "folder1" and "folder2".
Under each, there are thousands of files.
It's quite obvious that there are some files missing in each. I just would like to find them. I believe this can be done by "diff" command.
However, if I change the above question a... (1 Reply)
Discussion started by: jiapei100
1 Replies
5. Shell Programming and Scripting
Hi Experts,
I am checking how to get day in Perl.
If it is “Monday” I need to process…below is the pseudo code.
Can you please prove the code for below condition.
if (today=="Monday" )
{
while (current_time LESS THAN 9:01 AM)
... (1 Reply)
Discussion started by: ajaypatil_am
1 Replies
6. Shell Programming and Scripting
Hi all ,
am using unix ksh
I have a lots of files in /prb directory in the format as ..
..
..
..
MMRR0607.DAT_2012
MMRR0707.DAT_2012
MMRR0907.DAT_2012
MMRR1107.DAT_2012
...
..
MMRR3107.DAT_2012
MMRR0208.DAT_2012
..
I need the output as
Missing files are:-
MMRR0807.DAT_2012 (note... (4 Replies)
Discussion started by: Venkatesh1
4 Replies
7. Shell Programming and Scripting
I want to listed files every hours and check the missing sequence
my file format is
CV.020220131430.txt
CV.020220131440.txt
CV.020220131450.txt
CV.ddmmyyhhm.txt
how to check if i have missing files in sequence ..
thanks (3 Replies)
Discussion started by: before4
3 Replies
8. Shell Programming and Scripting
Hi All,
I have a requirement that i need to list only the missing sequences with a unix script.
For Example:
Input:
FILE_001.txt
FILE_002.txt
FILE_005.txt
FILE_006.txt
FILE_008.txt
FILE_009.txt
FILE_010.txt
FILE_014.txt
Output:
FILE_003.txt
FILE_004.txt
FILE_007.txt
FILE_011.txt... (5 Replies)
Discussion started by: Arun1992
5 Replies
9. Shell Programming and Scripting
Hi,
In an ideal scenario, I will have a listing of db transaction log that gets copied to a DR site and if I have them all, they will be numbered consecutively like below.
1_79811_01234567.arc
1_79812_01234567.arc
1_79813_01234567.arc
1_79814_01234567.arc
1_79815_01234567.arc... (3 Replies)
Discussion started by: newbie_01
3 Replies
10. Shell Programming and Scripting
In the below bash I am trying to ensure that all folders (represented by $folders) in a given directory are created. In the file f1 the trimmed folder will be there somewhere (will be multiple trimmed folders).
When that trimmed folder is found (represented by $S5) the the contents of $2 printed... (19 Replies)
Discussion started by: cmccabe
19 Replies
LEARN ABOUT HPUX
mailstats
mailstats(1) General Commands Manual mailstats(1)
NAME
mailstats - print mail traffic statistics
SYNOPSIS
cffile] stfile]
DESCRIPTION
reads and interprets the statistics file, and then prints out the mail traffic statistics. The statistics file is the one set by the
option in the The default statistics file is If the statistics file exists, collects statistics about your mail traffic and stores them in
that file. This file does not grow.
Statistics are gathered on a per-mailer basis for each mailer defined in the configuration file. Statistics are kept on the number of mes-
sages and the number of bytes for all inbound and outbound traffic.
The utility displays the time at which statistics collection was started on the first line. Then, the statistics of each mailer is dis-
played on a single line, each with the following white space separated fields (see the "EXAMPLES" section below):
The mailer number.
Number of messages from the mailer.
Kbytes from the mailer.
Number of messages to the mailer.
Kbytes to the mailer.
Number of messages rejected.
Number of messages discarded.
The name of the mailer.
After this display, a line totaling the values for all of the mailers is displayed, separated from the previous information by a line con-
taining only equals (``='') characters.
Note
can be used by privileged users only.
Options
The options are as follows:
Read the specified
cffile instead of the default file.
Read the specified statistics file,
stfile, instead of the statistics file specified in the file.
Do not display the name of the mailer in the output.
Output information in program-readable mode and clear statistics.
To clear the statistics file, execute, as root:
RETURN VALUE
The utility exits with 0 on success, and >0 if an error occurs.
DIAGNOSTICS
generates error messages if the statistics file is not accessible or if the size of the statistics file has changed. Error messages are:
Either statistics-file is zero length, meaning that no mail has been transferred since it was cleared out, or its size has changed.
Since the size of this file is supposed to remain constant, any change in size means that the file is invalid.
The statistics file does not exist.
The statistics file's permissions are set so that you cannot read it.
EXAMPLES
Here is a typical example of output:
=============================================================
This example shows that mailers 0, 3 and 5 have handled the given amounts of mail traffic since Thursday, Jul 11th. Specifically, has sent
11 messages containing 11 kilobytes via mailer esmtp (M 5), but has 4 messages rejected via mailer esmtp (M 5).
AUTHOR
was developed by the University of California, Berkeley.
FILES
default mail traffic statistics file
sendmail configuration file
SEE ALSO
sendmail(1M).
mailstats(1)