11-01-2012
Dear pamu and elixir sinari,
Thank you very much! It works!! Really helps a lot.
Best wishes,
Amanda
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a growing file . I knew only last few lines which is constant for evey job run. I'd need to pull the Nth record from the last line. In this case i should not use search pattern. (2 Replies)
Discussion started by: ford2020
2 Replies
2. Shell Programming and Scripting
Hi people;
i want to read the last word of the 14th line of my file1.txt. Here is the EXACT 14th line of the file.
250 SectorPortnum=3,AuxPortInUngo=2,PortDeviceGroup=1,PortDeviceSet=1,PorDevice=1 20 >>> Set.
i have to get the word Set. how can i call it and also how... (3 Replies)
Discussion started by: gc_sw
3 Replies
3. Shell Programming and Scripting
hi;
i have a file.txt and its 9th, 10th and 11th line lines are:
RbsLocalCell=S2C1 maxPortIP 4 (this is 9th line)
RbsLocalCell=S3C1 maxPortIP 4 (this is 10th line)
RbsLocalCell=S1C1 ... (11 Replies)
Discussion started by: gc_sw
11 Replies
4. Shell Programming and Scripting
Hi,
For my reuirement, I have to read a file from the 2nd line till the last line<EOF>.
Say,
I have a file as test.txt, which as a header record in the first line followed by records in rest of the lines.
for i in `cat test.txt`
{
echo $i
}
While doing the above loop, I have read... (5 Replies)
Discussion started by: machomaddy
5 Replies
5. UNIX for Dummies Questions & Answers
can you please tell me
(1) how to delete 1st and 3rd line only from a file.
(2) How to delete last 4 lines in a file that has 2 blank lines out of last 4 lines.
Thank you. (2 Replies)
Discussion started by: Ariean
2 Replies
6. Shell Programming and Scripting
Is there an awk script that can easily perform the following operation?
I have a data file that is in the format of
1944-12,5.6
1945-01,9.8
1945-02,6.7
1945-03,9.3
1945-04,5.9
1945-05,0.7
1945-06,0.0
1945-07,0.0
1945-08,0.0
1945-09,0.0
1945-10,0.2
1945-11,10.5
1945-12,22.3... (3 Replies)
Discussion started by: ncwxpanther
3 Replies
7. Shell Programming and Scripting
Dear all,
How to print every nth line. File like this:
File input:
1
1
1
1
1
1
2
2
2
3
3
3
3
3
3 (3 Replies)
Discussion started by: attila
3 Replies
8. Shell Programming and Scripting
Bash/Oracle Linux 6.4
A basic requirement.
How can I get nth line of a file printed ? Can I use grep in this case ?
Example:
In the below file, 12th line is "Kernel parameter check passed for rmem_max" . I just want the 12 line to be printed.
# cat sometext.txt
Kernel version check... (2 Replies)
Discussion started by: John K
2 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
I am using UNix Sun OS sun4u sparc SUNW,SPARC-Enterprise
My intention is to insert a line of text after 13th line of every file inside a particular directory.
While trying to do it for a single file , i am using sed
sed '3 i this is the 4th line' filename
sed: command garbled: 3... (5 Replies)
Discussion started by: gotamp
5 Replies
10. Shell Programming and Scripting
My file (the output of an experiment) starts off looking like this,
_____________________________________________________________
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
**********************************************************************
Subject 1,... (9 Replies)
Discussion started by: samonl
9 Replies
LEARN ABOUT CENTOS
amanda-interactivity
AMANDA-INTERACTIVIT(7) Miscellanea AMANDA-INTERACTIVIT(7)
NAME
amanda-interactivity - Configuring Interactivity with Amanda Amanda
DESCRIPTION
Amanda uses interactivity to ask user to load specific volumes when they are needed. This manual page describes the interactivity modules
included with Amanda.
This is a user-level description of the API, and does not address details that are only of concern to developers of new interactivity
plugins. For that purpose, consult the Amanda source code, perldoc 'Amanda::Interactivity' and http://wiki.zmanda.com.
DEFINING INTERACTIVITY
Interactivity is specified in amanda.conf(5) as follows:
define interactivity $interactivity_name {
comment "$comment"
plugin "$pluginname"
property "$PROPERTY_NAME" "$PROPERTY_VALUE"
...
}
and then referenced in the global section as
interactivity "$interactivity_name"
Interactivity properties, like Amanda configuration parameters, are insensitive to case, and - (dash) and _ (underscore) may be used
interchangeably.
See the individual plugin sections, below for properties applicable to each plugin.
INTERACTIVITY MODULES
Amanda provides three interactivity modules, tty, email and tty_email.
TTY
The tty interactivity module uses the tty to communicate with the user, it works only if a terminal is available, which is the case if
amanda is executed from a command line.
When promted for a volume, the user must put the requested volume in the changer and type <enter>. User can type the name of another
changer if the volume is available in that changer. Typing 'abort' will abort the operation.
EMAIL
The email interactivity module uses email to send requests to the user, and reads replies from the filesystem.
The email module has many properties:
check-file
If set, amanda will check this file for user input. The user can touch the file to tell amanda that the requested volume was inserted
in the changer. If the user writes the name of a changer into the file, Amanda will use that changer. If the user writes the word
'abort' into the file, the scan will be aborted.
check-file-delay
Default: 10. This integer property indicates the time in seconds between each check of the check-file.
mailto
Default: global value of mailto. The email addresses to which the email should be sent. If multiple addresses are given, they should
be separated by spaces.
resend-delay
Default 0. The time in seconds between emails. Amanda will resend the same email at this frequency, which can be useful if mailto is a
pager or phone. If set to 0, only one email is sent.
TTY_EMAIL
The tty_email interactivity module uses the tty module if a terminal is available and uses the email module otherwise. Its properties are a
combination of properties from each module.
EXAMPLE
define interactivity "by-tty-or-email" {
comment "Send email on runs from cron; use terminal on command line"
plugin "tty_email"
property "mailto" "admin1" "admin2" "me@home"
property "resend-delay" "1800" #every 30 minutes
property "check-file" "/tmp/email_input"
property "check-file-delay" "10" #every 10 seconds
}
SEE ALSO
amanda(8), amanda.conf(5)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHOR
Jean-Louis Martineau <martineau@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Amanda 3.3.3 01/10/2013 AMANDA-INTERACTIVIT(7)