Sponsored Content
Full Discussion: find command error
Top Forums Shell Programming and Scripting find command error Post 302643759 by gauravsharma29 on Sunday 20th of May 2012 02:25:34 PM
Old 05-20-2012
Excellent..thank u so much
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

I want to get the file which created the error when the find command was run

I want to get the file which created the error when the find command was run ? I am wrote a script to mail a list of files whose file size is ge than 0 and returns 0 but wen it finds a folder with only empty files it exits as 1. i need to modify it so that the return for this is also 0 (but it... (1 Reply)
Discussion started by: guhas
1 Replies

2. UNIX for Dummies Questions & Answers

find command exec error

Hi All, i am writing a shell script in korn shell which deletes all the files in a directory once in every 10DAYS. the directory has different format files. the script has something like this; cd /home/data/pavi echo "Please Enter the Number of Days to search for" read DAYS... (2 Replies)
Discussion started by: pavan_test
2 Replies

3. Shell Programming and Scripting

Perl Script Error with find command

Guys, I need to find all the files ending with either dmp or dmp.Z. This command is giving me error. @files =`find $path \(-name "*.dmp" -o -name "*.dmp.Z"\) -mtime +30`; sh: 0403-057 Syntax error at line 1 : `(' is not expected. Thanks in advance (4 Replies)
Discussion started by: MKNENI
4 Replies

4. Shell Programming and Scripting

Find Command in the script throw error

Hi I have script that is developed to serch for 30 days old Directory & Files and then remove them ... when i run it successfully removes the Directory & files & but it throw errors on the screen .. .. + find . -type f -mtime +30 -exec rm -f {} ; + exit please help me ?? I... (0 Replies)
Discussion started by: Beginner123
0 Replies

5. UNIX for Advanced & Expert Users

find command error

Executing "find /abc -follow -ls" the message "find: cycle detected for /abc/def/ghi/ What does this mean? Thanks... (2 Replies)
Discussion started by: twk
2 Replies

6. Shell Programming and Scripting

ksh - find command with 2 actions attached and error logging

Hi there, I'm encountering problems on an AIX system when using following in my script. find . -name *.edi -type f -exec sh -c 'scp {} $user@$server:$path || exit 5; mv {} $sent || exit 7' \; the error i get is following find: 0652-018 An expression term lacks a required... (4 Replies)
Discussion started by: Kerberos
4 Replies

7. Shell Programming and Scripting

find command error

Hi, We have a shell script which looks into a directroy for any folder older than 30 days and removes them. The command being used is find $ARCHIVE_DIR -type d -mtime +$PURGE_HIST_DAYS -exec rm -rf {} \; It removes some folders but then throw below errors for others: find:... (2 Replies)
Discussion started by: DejaVu
2 Replies

8. Shell Programming and Scripting

Find command error having space in filename

Hi, I am working in solaris.I am using below script to copy the files from /usr/tmp to /usr/gm But while running this it is not considering the files list after the filename having space in them. Example:- compile_custom_pll.sh conv_data_sqlload.sh conv_sqlload.sh Copy of... (5 Replies)
Discussion started by: millan
5 Replies

9. Shell Programming and Scripting

find command -No such file error

Hi , I tried the below code to remove the files older that 30 days . #!/bin/ksh set -x file_path1="/home/etc" file_path2="/home/hst" file_nm="HST" days=30 find $file_path1/*$file_nm* -type f -mtime +$days -exec rm -f {} \; find $file_path2/*$file_nm* -type f -mtime +$days -exec rm... (3 Replies)
Discussion started by: smile689
3 Replies

10. UNIX for Beginners Questions & Answers

Find command giving bad status error

In a fastload teradata utility I am trying to delete the files which are older than 30days using the find and rm command as following. find . -name 'xxx_*' -mtime +30 -exec rm -f {} \; I expect it to delete all the files older than 30 days but sometimes it gives an error : find: bad status--... (3 Replies)
Discussion started by: stelkar
3 Replies
LLDPCTL(8)						    BSD System Manager's Manual 						LLDPCTL(8)

NAME
lldpctl -- control LLDP daemon SYNOPSIS
lldpctl [-d] [-L location] [-P policy] [-O poe] [-o poe] [interface ...] DESCRIPTION
The lldpctl program controls lldpd(8) daemon. When no specific option is given, lldpctl displays the list of discovered neighbors along with some of their advertised capabilities. If some interfaces are given, only those interfaces will be displayed. The options are as follows: -d Enable more debugging information. -f format Choose the output format. Currently plain, xml and keyvalue formats are available. The default is plain. -L location Enable the transmission of LLDP-MED location TLV for the given interfaces. This option can be repeated several times to enable the transmission of the location in several formats. Several formats are accepted: Coordinate based location The format of location is 1:48.85667:N:2.2014:E:117.47:m:1 The first digit is always 1. It is followed by the latitude, a letter for the direction ( E or W for East or West), the longitude and a letter for the direction ( N or S ). The next figure is the altitude. It can be expressed in meters (the next letter is then m ) or in floors (the letter should be f ). The last digit is the datum. It can either be 1 (WGS84), 2 (NAD83) or 3 (NAD83/MLLW). Civic address The location can be expressed as an address. The format of the location is then 2:FR:6:Commercial Rd:3:Roseville:19:4 The first digit is always 2. The next two letters are the country code. Then, arguments are paired to form the address. The first member of the pair is a digit indicating the type of the second member. Here is the list of valid types: 0 Language 1 National subdivisions 2 County, parish, district 3 City, township 4 City division, borough, ward 5 Neighborhood, block 6 Street 16 Leading street direction 17 Trailing street suffix 18 Street suffix 19 House number 20 House number suffix 21 Landmark or vanity address 22 Additional location info 23 Name 24 Postal/ZIP code 25 Building 26 Unit 27 Floor 28 Room number 29 Place type 128 Script ECS ELIN This is a numerical string using for setting up emergency call. The format of the location is then the following: 3:0000000911 where the first digit should be 3 and the second argument is the ELIN number. When setting a location for a given port, all previous locations are erased. To erase all location, just use the empty string. There is currently no way to get the location from the command line. -P policy Enable the transmission of LLDP-MED Network Policy TLVs for the given interfaces. This option can be repeated several times to spec- ify different policies. Format (without spaces!): App-Type : U : T : VLAN-ID : L2-Prio : DSCP App-Type Valid application types (see ANSI/TIA-1057 table 12): 1 Voice 2 Voice Signaling 3 Guest Voice 4 Guest Voice Signaling 5 Softphone Voice 6 Video Conferencing 7 Streaming Video 8 Video Signaling U Unknown Policy Flag. 0 Network policy for the specified application type is defined. 1 Network policy for the specified application type is required by the device but is currently unknown. This is used by End- point Devices, not by Network Connectivity Devices. T Tagged Flag. 0 Untagged VLAN. In this case the VLAN ID and the Layer 2 Priority are ignored and only the DSCP value has relevance. 1 Tagged VLAN. VLAN-ID IEEE 802.1q VLAN ID (VID). A value of 1 through 4094 defines a VLAN ID. A value of 0 means that only the priority level is sig- nificant. L2-Prio IEEE 802.1d / IEEE 802.1p Layer 2 Priority, also known as Class of Service (CoS), to be used for the specified application type. 1 Background 2 Spare 0 Best Effort (default) 3 Excellent Effort 4 Controlled Load 5 Video 6 Voice 7 Network Control DSCP DiffServ/Differentiated Services Code Point (DSCP) value as defined in IETF RFC 2474 for the specified application type. Value: 0 (default per RFC 2475) through 63. Note: The class selector DSCP values are backwards compatible for devices that only support the old IP precedence Type of Service (ToS) format. (See the RFCs for what these values mean.) Examples: 1:0:1:500:6:46 Voice (1): not unknown (0), tagged (1), VLAN-ID 500, l2 prio Voice (6), DSCP 46 (EF, Expedited Forwarding) 2:0:1:500:3:24 Voice Signaling (2): not unknown (0), tagged (1), VLAN-ID 500, l2 prio Excellent Effort (3), DSCP 24 (CS3, Class Selector 3) -O poe Enable the transmission of LLDP-MED POE-MDI TLV for the given interfaces. One can act as a PD (power consumer) or a PSE (power provider). No check is done on the validity of the parameters while LLDP-MED requires some restrictions: o PD shall never request more power than physical 802.3af class. o PD shall never draw more than the maximum power advertised by PSE. o PSE shall not reduce power allocated to PD when this power is in use. o PSE may request reduced power using conservation mode o Being PSE or PD is a global paremeter, not a per-port parameter. lldpctl does not enforce this: a port can be set as PD or PSE. LLDP-MED also requires for a PSE to only have one power source (primary or backup). Again, lldpctl does not enforce this. Each port can have its own power source. The same applies for PD and power priority. LLDP-MED MIB does not allow this kind of repre- sentation. This option is distinct of -o option. You may want to use both options at the same time. The format of this option is (without spaces): type : source : priority : value type Valid types are: PSE Power Sourcing Entity (power provider) PD Power Device (power consumer) source Valid sources are: 0 Unknown 1 For PD, the power source is the PSE. For PSE, the power source is the primary power source. 2 For PD, the power source is a local source. For PSE, the power source is the backup power source or a power conservation mode is asked (the PSE may be running on UPS for example). 3 For PD, the power source is both the PSE and a local source. For PSE, this value should not be used. priority Four priorities are available: 0 Unknown priority 1 Critical 2 High 3 Low value For PD, the power value is the total power in tenth of watts required by a PD device from the PSE device. This value should range from 0 to 1023 tenth of watts. -o poe Enable the transmission of Dot3 POE-MDI TLV for the given interfaces. One can act as a PD (power consumer) or a PSE (power provider). This option is distinct of the -O option. You might want to use both. Contrary to LLDP-MED POE-MDI TLV, Dot3 POE-MDI TLV are strictly per-port values. The format of this option is (without spaces): type : supported : enabled : paircontrol : powerpairs : class [ : powertype : source : priority : requested : allocated ] type Valid types are: PSE Power Sourcing Entity (power provider) PD Power Device (power consumer) powerpairs Valid sources are: 1 The signal pairs only are in use. 2 The spare pairs only are in use. class Five classes are available: 1 class 0 2 class 1 3 class 2 4 class 3 5 class 4 0 no class supported, enabled and paircontrol can be set to to 0 or 1. supported means that MDI power is supported on the given port. enabled means that MDI power is enabled on the given port. paircontrol is used to indicate if the pair selection can be controlled on the given port. powertype, source, priority (and remaining values) are optional. They are only requested in conformance with 802.3at. type should be either 1 or 2. For the possible values of the next two fields, see the possible values of source and priority for LLDP-MED MDI/POE. requested and allocated are respectively the PD requested power value and the PSE allocated power value. This should be expressed in tenth of watts from 1 to 255. FILES
/var/run/lldpd.socket Unix-domain socket used for communication with lldpd(8). SEE ALSO
lldpd(8) AUTHORS
The lldpctl program was written by Vincent Bernat <bernat@luffy.cx>. BSD
July 16, 2008 BSD
All times are GMT -4. The time now is 04:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy