The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can I know find syntax to find given date files bache_gowda Shell Programming and Scripting 3 03-26-2008 06:37 AM
awk Shell Script error : "Syntax Error : `Split' unexpected Herry UNIX for Dummies Questions & Answers 2 03-17-2008 11:16 AM
syntax error bkan77 Shell Programming and Scripting 3 08-03-2007 12:33 AM
I got error like...syntax error on line 1, teletype koti_rama UNIX for Advanced & Expert Users 2 07-07-2007 08:35 PM
awk syntax error yongho Shell Programming and Scripting 4 06-20-2005 11:03 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-26-2008
namishtiwari namishtiwari is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2007
Location: Bangalore
Posts: 377
syntax error not able to find why

Hi Guru's

here is part of my shell script where the error is coming.

Code:
function daemon_start
{
   daemon=""
   clear
   :<<COMMENT                         
   Meenakshi 25-Jun Code Cleanup IA - code comented - Start
   echo "

                       `date`                        
                        $machine_name BBUWS MENU
                        -----------------------
                        
                        1) Start bbuw_watch
                        2) Start bbteleuwwatch                    
                        3) Start bblogpurgeauto
                        4) Start bbweekend_startstop_auto
                        5) Start unas_loader_auto
                        6) Start bureau_engine_auto
                        7) Start bureau_engine_watch
                        8) Start bureau_monitor_auto 
                        9) Start prebureau_watch
                       10) Start fraud_utc_auto
                       11) Start loststolen_loader_auto
                       12) Start start_checkbt_auto
                       13) Start icbatch_auto
                       14) Start Auto Process
                       15) Start rdc_engine_auto
                       16) Start rdc_engine_watch
                       17) Start rdc_monitor_auto
                       18) Start disposition_auto
                       19) Start idanalytics_engine_watch
                       20) Start idanalytics_monitor_auto
                       21) Start idanalytics_decline_batch
                       22) Start UW Auto Process
                        Q) Quit Menu           
                       
                        Enter Selection: \c"
Meenakshi 25-Jun Code Cleanup IA - code comented - Start              
COMMENT                        
echo "

                       `date`                        
                        $machine_name BBUWS MENU
                        -----------------------
                        
                        1) Start bbuw_watch
                        2) Start bblogpurgeauto
                        3) Start bbweekend_startstop_auto
                        4) Start unas_loader_auto
                        5) Start bureau_engine_auto
                        6) Start bureau_engine_watch
                        7) Start bureau_monitor_auto 
                        8) Start prebureau_watch
                        9) Start fraud_utc_auto
                       10) Start loststolen_loader_auto
                       11) Start Auto Process
                       12) Start rdc_engine_auto
                       13) Start rdc_engine_watch
                       14) Start rdc_monitor_auto
                       15) Start disposition_auto
                       16) Start idanalytics_engine_watch
                       17) Start idanalytics_monitor_auto
                       18) Start idanalytics_decline_batch
                       19) Start UW Auto Process
                                            
                       Q) Quit Menu           
                       
                        Enter Selection: \c"                        
	read OPTION
	case $OPTION
	in     
        1) daemon="bbuw_watch"
           run_daemon               
           ;;
#Meenakshi 25-Jun Code Cleanup IA - code comented - Start             
#       2) daemon="bbteleuwwatch"
#         run_daemon          
#        ;; 
#Meenakshi 25-Jun Code Cleanup IA - code comented - End  
        2) daemon="bblogpurgeauto"
           run_daemon       
           ;; 
        3) daemon="bbweekend_startstop_auto"
           run_daemon       
           ;;
        4) daemon="unas_loader_auto"
           run_daemon       
           ;; 
        5) daemon="bureau_engine_auto"
           run_daemon       
           ;;  
        6) daemon="bureau_engine_watch"
           run_daemon       
           ;;  
        7) daemon="bureau_monitor_auto"
           run_daemon       
           ;; 
        8) daemon="prebureau_watch"
           run_daemon       
           ;; 
        9) daemon="fraud_utc_auto"
           run_daemon       
           ;;  
       10) daemon="loststolen_loader_auto"
           run_daemon       
           ;;  
:<<COMMENT  
Meenakshi 25-Jun Code Cleanup IA - code comented - Start  
       12) daemon="start_checkbt_auto"
           run_daemon       
           ;;  
       13) daemon="icbatch_auto"
           run_daemon       
           ;;  
Meenakshi 25-Jun Code Cleanup IA - code comented - End  
COMMENT
       11) daemon="auto_process_daemon"
	  run_daemon	
	   ;;	
       12) daemon="rdc_engine_auto"
	  run_daemon		
           ;; 
       13) daemon="rdc_engine_watch"
       	  run_daemon		
           ;; 
       14) daemon="rdc_monitor_auto"
       		run_daemon		
           ;;	
       15) daemon="disposition_daemon_start.sh"
       		run_daemon	       		
           ;; 
       16) daemon="ida_engine_watch"
       		run_daemon	       		
           ;; 
       17) daemon="ida_monitor_auto"
       		run_daemon	       		
       	   ;; 
       18) daemon="ida_decline_batch"
       		run_daemon	       		
           ;; 
       19) daemon="uw_autoprocess_daemon"
              		run_daemon	       		
           ;; 
       q|Q|0) break
           ;; 
  
        esac
        daemon_show  
}

when i am running the script i am getting an error
syntax error at line 1179 : `)' unexpected

line 1179 is above the line in red colour.
is the problem coming because of multiple line comment.

Thanks
Namish

Last edited by namishtiwari; 06-26-2008 at 10:01 AM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0