I had to do this in awk as I don't have ksh installed, but I think you get the gist... Usually, an iteration is exited if changes get below a defined bound which I here chose to be 10^-7...
Hi all:
I am new to this board and UNIX programming so please forgive if I don't explain something correctly.
I am trying to write a script to keep track of our links, we link one program written for Client A to Client B's directory.
What we want to do is to keep track of our linked programs... (1 Reply)
Hi ,
I am relatively new to unix...
Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell..
This is very urgent.
Thanks for ur help... (7 Replies)
Hi experts,
I am facing a big problem. i use solaris 9. i found size of /var is increasing day by.
snapshot of a yester moring-
/dev/vx/dsk/var 15G 14G 1.1G 94% /var
snapshot of a yesterday everning-
/dev/vx/dsk/var 15G 14G 824M 95% /var
I am... (11 Replies)
Hi All,
I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this.
My Requirment is as below:
Input for me will be 2000909(YYYYMM)
I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
Recently i have attended a telephonic interview. As i dont have work experience in solaris i was not able to deliver correct answer for this question.
Your answer will help for the people like me who is looking to become Solaris System administrator. (4 Replies)
I am using the code below modified from a post I saw here regarding having the script write out future dates. The problem is that instead of making 8/1 it makes 7/32! Please help!
yy=`date +%Y`
mm=`date +%m`
dd=`date +%d`
echo "Today is : $yy $mm $dd"
#!/usr/bin/ksh
date '+%m... (5 Replies)
Hi,
I would like to write a script that checks if a file ('counter') was modified the previous day, if so erase its contents and write 00000000 into it.
For e.g. if the file 'counter' was last modified at 11.30pm on 24th May and the script runs at 12.15am of 25th May, it should erase it's... (1 Reply)
Hi All,
I have a requirement where I need to first capture the current day & move all the files from a particular directory based on a previous day.
i.e move all the files from one directory to another based on current day & a previous day. Here is what I am trying, but it gives me errors.... (2 Replies)
hello,
I have many files called day001, day002, day003 and I want to rename them by day20070101, day20070102, etc.
I need to do it for several years and leap years as well.
What is the best way to do it ?
Thank you. (1 Reply)
Discussion started by: Ggg
1 Replies
LEARN ABOUT REDHAT
amreport
AMREPORT(1) General Commands Manual AMREPORT(1)NAME
amreport - generate a formatted output of statistics for an Amanda run
SYNOPSIS
amreport [ config ] [ -l logfile ] [ -f outputfile ] [ -p postscriptfile ]
DESCRIPTION
Amreport generates a summary report of an amanda(8) backup run. If no configuration name is specified, amanda.conf is read from the cur-
rent directory.
See the amanda(8) man page for more details about Amanda.
OPTIONS
config Name of the configuration to process.
[-l logfile]
Name of the log file to parse to generate the report. If a log file is not specified, it defaults to the file:
logdir/log
where logdir is the log directory defined in amanda.conf.
[-f outputfile]
Normally, amreport sends the report via e-mail to the mailto user as defined in the amanda.conf file. If outputfile is specified,
then the report is put in outputfile.
[-p postscriptfile]
Send the postscript output to the file postscriptfile instead of to the lpr(1) command. This option has an effect only if the lbl-
templ directive is specified in amanda.conf.
LABEL PRINTING
Amanda can print postscript labels describing the contents of tape(s) written in a run. The labels are designed to be folded and inserted
into the tape case along with the tape or hole punched and put in a 3-ring binder. Various label templates are provided to format data for
different tape sizes.
The information printed varies slightly between label templates due to size constraints. Labels contain one line for each host/file-system
pair and may also contain the file number on the tape, the level of the dump, the original size of the dump and the size of the (possibly
compressed) tape file.
Add the lbl-templ parameter to the tapetype definition in amanda.conf to enable labels. If you don't add this line to your tapetype defi-
nition, amreport will not print tape labels.
You may use the printer keyword in amanda.conf to print to other than the system default printer.
TEMPLATES
Amanda provides label templates for the following tape types. These are pretty generic labels and should be easy to customize for other
tape types or particular site needs.
* ExaByte 8mm tapes
* DAT 4mm tapes
* DLT tapes
* 3-ring binder
The 3-ring binder type is the most generic. It may be used to make a hardcopy log of the tapes.
SEE ALSO amanda(8), amflush(8)AMREPORT(1)