Sponsored Content
Full Discussion: Help with grep script
Homework and Emergencies Homework & Coursework Questions Help with grep script Post 302798229 by hanson44 on Wednesday 24th of April 2013 03:46:37 AM
Old 04-24-2013
I'm afraid that's pretty vague. But maybe it's better you didn't post anything concrete. I don't know what the rules are about posting a solution to this homework assignment. Smilie Is the class over? Of course, no way to know. Any guidance from the administrators?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

grep from a script...

This is an extract from a script that i am trying to run. for tim in "2005:00:" "2005:01:" "2005:02:" "2005:03:" "2005:04:" "2005:05:"; do FormString="$tim" echo "grep '$FormString' access.10Aug-1201AM" count=`grep "$FormString" access.10Aug-1201AM | wc -l` ... (1 Reply)
Discussion started by: hamsasal
1 Replies

2. UNIX for Dummies Questions & Answers

grep script

hi guys, i was hoping you could help me out with the following im designing a help site for my work colleagues and would like a little script which would do a grep to check if an application is running on unix for example this is what i do on unix ps -ef | grep mqm and this tells me if... (4 Replies)
Discussion started by: drchris
4 Replies

3. Shell Programming and Scripting

Grep within a script

Hi, I am new to this - I have a unix command (below) that I would like to make automated. I would like the script to run the below command line but would like user input for '\' and '\' as these values will change depending on what i'm searching for. Is this possible? if so please help. ... (13 Replies)
Discussion started by: dnash
13 Replies

4. UNIX for Dummies Questions & Answers

trying to grep the first few lines of a continuos script, and exit the script anyidea

Hi. I am trying to extract the output of the first few lines of a continuos sh script. The when i run it, i wont to grep the the first 20 lines of it for an entry and basically do a crtl z out of it or to that effect, and output the results to a text file. I basically want to script... (5 Replies)
Discussion started by: k00061804
5 Replies

5. Shell Programming and Scripting

How to grep sql error in shell script and exit the script?

I need help in the following script. I want to grep the sql errors insert into the error table and exit the shell script if there is any error, otherwise keep running the scripts. Here is my script #!/bin/csh -f source .orapass set user = $USER set pass = $PASS cd /opt/data/scripts echo... (2 Replies)
Discussion started by: allinshell99
2 Replies

6. Shell Programming and Scripting

script use min resource ( grep grep)

Hi i wrote script use it as watchdog ( i mean it check another program (pooya) whenever that was killed (closed or crashed) it run another script (pooya_start.sh) to start it, this script work fine and do the job for me , i need help of an expert to tell me (exact command) how to change this... (8 Replies)
Discussion started by: pooyair
8 Replies

7. UNIX for Dummies Questions & Answers

grep IP script

Hello, I have a command and would like to make that as a script. How do I do that? my command is: grep -Eo +\.+\.+\.+. and i want to have that like grepscript.sh x.txt > IP.txt Can somebody help me? (3 Replies)
Discussion started by: eightball
3 Replies

8. Shell Programming and Scripting

Inconsistent `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`

i have this line of code that looks for the same file if it is currently running and returns the count. `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l` basically it is assigned to a variable ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies

9. Shell Programming and Scripting

Help with script - GREP

Hallo gentlemen, i've a problem removing lines from txt file. To make it simple, here is an example: TEXT1.TXT --- contents: 9.9.9.9 geek.net 1.1.1.1 geek.com 2.2.2.2 leet.net TEXT2.TXT --- contents: geek.com coolbar.org I simply do: cat text1.txt | grep -f text2.txt >... (7 Replies)
Discussion started by: mirkocosta
7 Replies

10. Shell Programming and Scripting

Grep Script

Hi, New to scripting and looking for some help. I am trying to write a script that will search a specified directory for any new or modified files within the last 7 days and display the results. This will be ran daily and emailed? Thanks (18 Replies)
Discussion started by: Con592
18 Replies
evm.auth(4)						     Kernel Interfaces Manual						       evm.auth(4)

NAME
evm.auth - EVM authorization file SYNOPSIS
DESCRIPTION
Authorization is control of the right to post, subscribe to, or retrieve an EVM event, or to execute services defined in the EVM daemon configuration file. The file is a text file that controls event authorization. Any portion of a line from an unquoted number sign to the end of line is a com- ment. Blank lines are ignored. The following authorization controls are recognized: The rights specified apply to event posting and subscription. Class of events to which these rights apply. An event_class is a string of one or more components that match the same set of components in an It is used to iden- tify a family of events for purposes such as authorization. The more specific classes (those with more components) override the rights indicated by the less specific (more generic) classes. Users specified by the rights_list are allowed or denied the right to post events of this event_class. Users specified by the rights_list are allowed or denied the right to subscribe to or retrieve from the log, events of this event_class. rights_list A list of users or groups who have or are denied the specified right for this event or service class. Entries are separated by commas. A rights_list has the format: In the previous rights_list, user is the login name of any user, and groupname is any group. The keyword may be abbreviated to A leading plus character signifies that event or service rights are granted. A leading minus charac- ter (-) signifies that rights are explicitly denied. User has implicit posting and access rights to all events, and execute rights to all services, unless they are explicitly denied. The first explicit entry for a user in a rights list takes precedence over any other explicit or group entries for that user. If the user is not explicitly listed, but is a member of a group which denies access, access is denied even if the user is also a member of a group for which access is granted. A plus or minus sign with no associated name grants or denies rights to all users. The rights_list must be enclosed in double quotes if it contains spaces. The rights specified apply to services performed by the daemon for a requesting client. The service to which these rights apply. The service_name is the name of a service defined in the file. User-defined services are not currently supported. Users specified by the rights_list are allowed or denied the right to request operation of this service. The keywords described may be entered in a case-insensitive manner. The allowable strings and the minimum number of characters is shown in the following table. A minimum of zero indicates that all characters are required. Keyword Minimum ------------------------- access 0 class 0 event_rights 7 execute 4 post 0 service 4 service_rights 9 Notes 1. If you add an entry to the authorization file, you must make sure there is a corresponding base event template in the template file library. The base template must have a name whose components exactly match the corresponding components in the authorization file's value. The template name can have fewer components than are present in the but it cannot have more. For example, if an group has a value of and an event template with the name has been registered in an EVM template file, the template will be regarded as the base tem- plate for the class. Each time the daemon loads or reloads its configuration, it writes a warning message in its error file if no base template is registered for a particular entry. Refer to the evmtemplate(4) manpage for information about registering event templates. 2. If you are concerned with allowing your file to be used on other systems that support EVM in the future, you should use the built-in macro in place of the first two components of the name of any system event. This will make it unnecessary to change the file if the other system uses a different event name prefix. EXAMPLES
This example illustrates an entry in the authorization file with the following privileges: Only root may post events that have as the first two components of the event name. Events in this class may be accessed by root or by any user who is a member of the tech group. FILES
Location of the EVM authorization file. SEE ALSO
Commands evmd(1M). Files evmdaemon.conf(4), evmtemplate(4). Event Management EVM(5). evm.auth(4)
All times are GMT -4. The time now is 01:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy