Sponsored Content
Top Forums Shell Programming and Scripting PERL - Use of uninitialized value in pattern match (m//) Post 302938605 by Corona688 on Tuesday 17th of March 2015 09:26:27 PM
Old 03-17-2015
This cannot be your actual script. There are no lines 41 and 43.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl script to match a pattern and print lines

Hi I have a file (say 'file1')and I want to search for a first occurence of pattern (say 'ERROR') and print ten lines in the file below pattern. I have to code it in PERL and I am using Solaris 5.9. I appreciate any help with code Thanks Ammu (6 Replies)
Discussion started by: ammu
6 Replies

2. Shell Programming and Scripting

Perl: Printing Multiple Lines after pattern match

Hello People, Need some assistance/guidance. OUTLINE: Two files (File1 and File2) File1 has some ids such as 009463_3922_1827 897654_8764_5432 File2 has things along the lines of: Query= 009463_3922_1827 length=252 (252 letters) More stufff here ... (5 Replies)
Discussion started by: Deep9000
5 Replies

3. Shell Programming and Scripting

pattern match url in string / PERL

Am trying to remove urls from text strings in PERL. I have the following but it does not seem to work: $remarks =~ s/www\.\s+\.com//gi; In English, I want to look for www. then I want to delete the www. and everything after it until I hit a space (but not including the space). It's not... (2 Replies)
Discussion started by: mrealty
2 Replies

4. Shell Programming and Scripting

Perl Array / pattern match large CPU usage

Hi, I have one file in this format 20 value1 33 value2 56 value3 I have another file in this format: 34,30-SEP-09,57,100237775,33614510126,2,34 34,30-SEP-09,57,100237775,33620766654,2,34 34,30-SEP-09,108,100237775,33628458122,2,34 34,30-SEP-09,130,100237775,33635266741,2,254... (6 Replies)
Discussion started by: Donkey25
6 Replies

5. Shell Programming and Scripting

Perl Pattern Match

Hi Friends, I have a tuff time with regular expressionss. Please let me know how to make this happen as it consumed lots of my time but in vain. Here is the sample text file i need to match for. I need to search for pattern1 removed, if it matches then search for pattern types either SE\ or... (2 Replies)
Discussion started by: nmattam
2 Replies

6. Shell Programming and Scripting

perl pattern match on xml

using perl Hi All, i was wondering if anyone can solve how to extract the full tag from the xml line ie not sure what to put in the m// to get the string "/data/TOP471//context_data/instruments.txt" I basically want the above filename in a variable for further processing... $_ =" ... (0 Replies)
Discussion started by: satnamx
0 Replies

7. Shell Programming and Scripting

How to replace with pattern match using Perl

I have to replace a line, if it has a pattern for example Suppose file.out contains: <tr><td class="cB">Hello</td><td class="cB">1245</td><td class="cB">958</td><td class="cRB">1.34</td><td class="cRB">1.36</td></tr> <tr><td class="cB">world</td><td class="cB">3256</td><td... (8 Replies)
Discussion started by: sol_nov
8 Replies

8. Shell Programming and Scripting

Perl match pattern

Hi all, i have a peice of Perl script like this: foreach (@line) { @tmp = split /;/,$_; #print "Line is: $_\n"; switch($tmp){ case m/p60/i { push @p60, , $tmp ]; ... (7 Replies)
Discussion started by: arrals_vl
7 Replies

9. Shell Programming and Scripting

Perl removing line match with pattern in column

Hi, I have log like this: ... (1 Reply)
Discussion started by: justbow
1 Replies

10. Shell Programming and Scripting

Perl removing line match with pattern in column

Hi, I have log like this: ... (1 Reply)
Discussion started by: justbow
1 Replies
AFSMONITOR(5)							AFS File Reference						     AFSMONITOR(5)

NAME
afsmonitor - Provides instructions for the afsmonitor command DESCRIPTION
The afsmonitor configuration file determines which machines the afsmonitor command probes for File Server or Cache Manager statistics and which statistics it gathers. Use the -config argument to the afsmonitor command to identify the configuration file to use. The instructions that can appear in the configuration file are as follows: cm <host name> Names a client machine for which to display Cache Manager statistics. The order of "cm" lines in the file determines the order in which client machines appear from top to bottom on the "System Overview" and "Cache Managers" output screens. fs <host name> Names a file server machine for which to display File Server statistics. The order of "fs" lines in the file determines the order in which file server machines appear from top to bottom on the "System Overview" and "File Servers" output screens. thresh (fs | cm) <field> <thresh> [<cmd>] [<arg> ...] Assigns the threshold value thresh to the statistic field, for either a File Server statistic ("fs") or a Cache Manager statistic ("cm"). The optional cmd field names a binary or script to execute each time the value of the statistic changes from being below thresh to being at or above thresh. A change between two values that both exceed thresh does not retrigger the binary or script. The optional arg fields are additional values that the afsmonitor program passes as arguments to the cmd command. If any of them include one or more spaces, enclose the entire field in double quotes. The afsmonitor program passes the following parameters to the cmd: <hostname> (fs|cm) <field> <thresh> <actual> [<arg> ...] The parameters "fs", "cm", <field>, <thresh>, and <arg> correspond to the values with the same name on the thresh line. The <hostname> parameter identifies the file server or client machine where the statistic has crossed the threshold, and the <actual> parameter is the actual value of <field> that exceeds the threshold value. Use the "thresh" line to set either a global threshold, which applies to all file server machines listed on "fs" lines or client machines listed on "cm" lines in the configuration file, or a machine-specific threshold, which applies to only one file server or client machine. o To set a global threshold, place the thresh line before any of the "fs" or "cm" lines in the file. o To set a machine-specific threshold, place the thresh line below the corresponding "fs" or "cm" line, and above any other "fs" or "cm" lines. A machine-specific threshold value always overrides the corresponding global threshold, if set. Do not place a "thresh fs" line directly after a "cm" line or a "thresh cm" line directly after a "fs" line. show (fs | cm) field/group/section Specifies which individual statistic, group of statistics, or section of statistics to display on the "File Servers" screen ("fs") or "Cache Managers" screen ("cm") and the order in which to display them. The appendix of afsmonitor statistics in the OpenAFS Administration Guide specifies the group and section to which each statistic belongs. Include as many "show" lines as necessary to customize the screen display as desired, and place them anywhere in the file. The top-to-bottom order of the "show" lines in the configuration file determines the left-to-right order in which the statistics appear on the corresponding screen. If there are no "show" lines in the configuration file, then the screens display all statistics for both Cache Managers and File Servers. Similarly, if there are no "show fs" lines, the "File Servers" screen displays all file server statistics, and if there are no "show cm" lines, the "Cache Managers" screen displays all client statistics. # comments Precedes a line of text that the afsmonitor program ignores because of the initial number ("#") sign, which must appear in the very first column of the line. For a list of the values that can appear in the field/group/section field of a "show" instruction, see the afsmonitor statistics appendix to the OpenAFS Administration Guide. SEE ALSO
afsmonitor(1) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 AFSMONITOR(5)
All times are GMT -4. The time now is 12:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy