Sponsored Content
Top Forums Shell Programming and Scripting Need quick help with basic FIND in korn shell Post 11242 by Kelam_Magnus on Friday 30th of November 2001 03:38:36 PM
Old 11-30-2001
This site does have a policy about posting homework. They usually frown on it.

So, if you post in the future, try to make it a "real world" question.

Thanks Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find -name "*.txt" in Korn Shell Script

The following find command works on the Korn Shell command line: find . \( ! -name . -prune \) -type f -name "*.txt" -mtime +100 In the particular directory I'm in, the above find will list correctly the three text files that exist that haven't been modified in over 100 days: ... (3 Replies)
Discussion started by: jwperry
3 Replies

2. Shell Programming and Scripting

KORN Shell - Spawn new shell with commands

I want to be able to run a script on one server, that will spawn another shell which runs some commands on another server.. I have seen some code that may help - but I cant get it working as below: spawn /usr/bin/ksh send "telnet x <port_no>\r" expect "Enter command: " send "LOGIN:x:x;... (2 Replies)
Discussion started by: frustrated1
2 Replies

3. Shell Programming and Scripting

how to convert from korn shell to normal shell with this code?

well i have this code here..and it works fine in kornshell.. #!/bin/ksh home=c:/..../ input=$1 sed '1,3d' $input > $1.out line="" cat $1.out | while read a do line="$line $a" done echo $line > $1 rm $1.out however...now i want it just in normal sh mode..how to convert this?... (21 Replies)
Discussion started by: forevercalz
21 Replies

4. UNIX for Dummies Questions & Answers

find and FTP multiple files in Korn Shell

I want to FTP multiple files in a directory that the files were created since midnight of the same day using korn shell. I can use the "find" command using -newer arguement that compares against a time stamp file. The script identifies the files, I can't use a variable = `find . ` as the... (2 Replies)
Discussion started by: lambjam
2 Replies

5. Shell Programming and Scripting

need a quick basic shell script help

im trying to run the below if command ifconfig -a |grep 10.100.120.21 gives me below output inet addr:10.100.120.21 Bcast:10.100.120.255 Mask:255.255.255.0 i just want a basic shell which says if above exists then continue how would i do this? (6 Replies)
Discussion started by: eb222
6 Replies

6. Shell Programming and Scripting

quick script C shell

Cool. I played with scripts at home over the weekend. Come to find out not working on other shells. I have linux/bash at home, but now I'm trying on Solaris csh. How would I write the following script for Solaris C shell? ---------- #!/bin/bash NBR=231 for ((i = 0; i < $NBR; i++ )) do... (1 Reply)
Discussion started by: ajp7701
1 Replies

7. Shell Programming and Scripting

Korn Shell Script to find out error in logfile

Hi All, I am new to this forum as well as to unix scripting. Can you please help me to create a korn shell script to find out errors in logfiles and get the name of that logfile ( which is having error) in email and email it to me? (2 Replies)
Discussion started by: jithu
2 Replies

8. Shell Programming and Scripting

Find command in Korn Shell

Hi, I am trying to execute the below in Ksh (telnet) find ./request.txt -mmin -30 It says find: bad option -mmin What i am trying to do is by using find command i am checking wheather the file request.txt is there for 30 minutes or not Please help (1 Reply)
Discussion started by: chinniforu2003
1 Replies

9. Shell Programming and Scripting

How to activate Korn Shell functionnalities in Bourne Shell

Hi All I have writing a Korn Shell script to execute it on many of our servers. But some servers don't have Korn Shell installed, they use Borne Shell. Some operations like calculation don't work : cat ${file1} | tail -$((${num1}-${num2})) > ${file2} Is it possible to activate Korn Shell... (3 Replies)
Discussion started by: madmat
3 Replies

10. Shell Programming and Scripting

Quick Help in shell script

Need to subtract date stored in variable from the current date, answer should come in days..and months. Suppose two variable having value like A=”Wed Jan 15 08:59:08 GMT 2014” B= `date` #Sun May 23 09:29:40 GMT 2010 SubtractAB= $A-$B #..? AddAB=$A+$B #... ? C=$B+9 # Sun May 23... (3 Replies)
Discussion started by: KuldeepSinghTCS
3 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 10:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy