Sponsored Content
Full Discussion: Syntax Error Script
Top Forums UNIX for Dummies Questions & Answers Syntax Error Script Post 302698671 by Newer on Monday 10th of September 2012 10:57:16 AM
Old 09-10-2012
Hammer & Screwdriver

Guys the error still persist in the same line 16..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Syntax error in a script...

Hi All, I have been fighting with a syntax error for the last 2 days, still haven't got the solution. Could you please help me, your help will be greatly appreciated. In my script I am getting a error in a for loop, its similar to the one as is below. for v_id in v1 v2 v3 v4 do... (8 Replies)
Discussion started by: rajus19
8 Replies

2. Shell Programming and Scripting

syntax error in script !!

./disk_space_util.sh ./disk_space_util.sh: Syntax error at line 24 : `then' is not expected. ================================= cat disk_space_util.sh #!/bin/sh # # Parameter Settings ORA_LOG, ORA_SCRIPT, DBA_EMAIL_LIST -- (Set in .profile) bdf | sed "s/%/ /g" | sed "/Filesystem/d" |... (13 Replies)
Discussion started by: uuser
13 Replies

3. Shell Programming and Scripting

Syntax error in script

I get this error when I try to run my script (BTW, this is a simple script I am supposed to write for my class) $ menuscript menuscript: syntax error at line 89 : `"' unmatched $ Here is the code (Any help is greatly appreciated) (Line numbers included) 1 #!/bin/ksh 2 ... (2 Replies)
Discussion started by: KindHead
2 Replies

4. UNIX for Dummies Questions & Answers

awk Shell Script error : "Syntax Error : `Split' unexpected

hi there i write one awk script file in shell programing the code is related to dd/mm/yy to month, day year format but i get an error please can anybody help me out in this problem ?????? i give my code here including error awk ` # date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies

5. Shell Programming and Scripting

Syntax error with a script

Hi I not sure what is wrong with my script... when I try to run it I get the follow error: "remove: syntax error at line 77: `end of file' unexpected" Thanks in advance for any help. ans=y while do while : do echo "Please enter a name that you... (3 Replies)
Discussion started by: simpsonjr
3 Replies

6. Shell Programming and Scripting

Syntax error in script

Hey guys keep having problems with the below script syntax error near unpexpected token '0' exit 0 I have two directorys backups and Usr in the usr i have sub dir's wp,ss,pic which i would like to back up (copy those directorys to the backups directory) with user acknowledgement from command line.... (2 Replies)
Discussion started by: Spartukus
2 Replies

7. Shell Programming and Scripting

Syntax error calling TCL script from shell script

hello everyone i am beginner on shell scripting .and i am working on my project work on ad hoc network i wrote a batch (.sh) to do a looping and execute a tcl script i wrote before in each iteration ..but i got this problem " syntax error near unexpected token `('... (1 Reply)
Discussion started by: marcoss90
1 Replies

8. Shell Programming and Scripting

Syntax Error in Script

Hi All, I am new to Unix, I have written the following script in ksh and get a syntax error :wall:. I need some help to figure out the error and reason. The script below uses some variables from an environment file, also it executes a sql file. The sql file is correct and has no problems. I... (1 Reply)
Discussion started by: disshort23
1 Replies

9. Shell Programming and Scripting

First Script Syntax Error

So, I'm writing my first shell script to try to speed up the process of creating lyric files for mocp and I don't know what the error is, but considering how short the code is, I'm betting it's something super-obvious. line 7: syntax error near unexpected token `echo' line 7: ` echo... (4 Replies)
Discussion started by: D351
4 Replies

10. UNIX for Beginners Questions & Answers

Syntax error on script

Evening All (or morning for some), Could anyone have a look at the below and advise where i've going wrong with the syntax as i keep getting the below error while trying to run. Any help would be really apprecaited. ./testout: line 13: syntax error near unexpected token `else' ... (4 Replies)
Discussion started by: mutley2202
4 Replies
Bio::OntologyIO::Handlers::InterPro_BioSQL_Handler(3pm) User Contributed Perl DocumentationBio::OntologyIO::Handlers::InterPro_BioSQL_Handler(3pm)

NAME
Bio::OntologyIO::Handlers::InterPro_BioSQL_Handler - parse an InterPro XML file and persist the resulting terms to a Biosql database SYNOPSIS
# see load_interpro.pl in bioperl-db/scripts/biosql/ DESCRIPTION
This module is for parsing an InterPro XML file and persist the resulting terms to a Biosql database as soon as the term is complete as signaled by the appropriate xml tag. This parser takes advantage of SAX, a stream-based XML parser technology, to keep the used memory as small as possible. The alternative parser for InterPro, module InterProHandler, builds up the entire ontology in memory, which given the size of the latest InterPro releases requires a huge amount of memory. This module takes the following non-standard arguments upon instantiation. -db the adaptor factory as returned by a call to Bio::DB::BioDB->new() -version the InterPro version (not available as property!) -term_factory the object factory to use for creating terms Note that there are two alternatives for how to persist the terms and relationships to the database. The default is using the adaptor factory passed as -db or set as a property to create persistent objects and store them in the database. The alternative is to specify a term persistence and a relationship persistence handler; if one or both have been set, the respective handler will be called with each term and relationship that is to be stored. See properties persist_term_handler and persist_relationship_handler. AUTHOR
Juguang Xiao, juguang@tll.org.sg Contributors Hilmar Lapp, hlapp at gmx.net APPENDIX The rest of the documentation details each of the object methods. Interal methods are usually preceded with a _ term_factory Title : term_factory Usage : $obj->term_factory($newval) Function: Get/set the ontology term factory to use. As a user of this module it is not necessary to call this method as there will be default. In order to change the default, the easiest way is to instantiate L<Bio::Ontology::TermFactory> with the proper -type argument. Most if not all parsers will actually use this very implementation, so even easier than the aforementioned way is to simply call $ontio->term_factory->type("Bio::Ontology::MyTerm"). Example : Returns : value of term_factory (a Bio::Factory::ObjectFactoryI object) Args : on set, new value (a Bio::Factory::ObjectFactoryI object, optional) db Title : db Usage : $obj->db($newval) Function: Sets or retrieves the database adaptor factory. The adaptor factory is a Bio::DB::DBAdaptorI compliant object and will be used to obtain the persistence adaptors necessary to serialize terms and relationships to the database. Usually, you will obtain such an object from a call to Bio::DB::BioDB. You *must* set this property before starting the parse. Note that this property is immutable once set, except that you may set it to undef. Therefore, be careful not to set to undef before setting the desired real value. Example : Returns : value of db (a Bio::DB::DBAdaptorI compliant object) Args : on set, new value (a Bio::DB::DBAdaptorI compliant object or undef, optional) persist_term_handler Title : persist_term_handler Usage : $obj->persist_term_handler($handler,@args) Function: Sets or retrieves the persistence handler for terms along with the constant set of arguments to be passed to the handler. If set, the first argument will be treated as a closure and be called for each term to persist to the database. The term will be passed as a named parameter (-term), followed by the other arguments passed to this setter. Note that this allows one to pass an arbitrary configuration to the handler. If not set, terms will be persisted along with their relationships using the respective persistence adaptor returned by the adaptor factory (see property db). Example : Returns : an array reference with the values passed on set, or an empty array if never set Args : On set, an array of values. The first value is the handler as a closure; all other values will be passed to the handler as constant argument. persist_relationship_handler Title : persist_relationship_handler Usage : $obj->persist_relationship_handler($handler,@args) Function: Sets or retrieves the persistence handler for relationships along with the constant set of arguments to be passed to the handler. If set, the first argument will be treated as a closure and be called for each relationship to persist to the database. The relationship will be passed as a named parameter (-rel), followed by the other arguments passed to this setter. Note that this allows one to pass an arbitrary configuration to the handler. If not set, relationships will be persisted along with their relationships using the respective persistence adaptor returned by the adaptor factory (see property db). Example : Returns : an array reference with the values passed on set, or an empty array if never set Args : On set, an array of values. The first value is the handler as a closure; all other values will be passed to the handler as constant argument. _persist_term Title : _persist_term Usage : Function: Persists a term to the database, using either a previously set persistence handler, or the adaptor factory directly. Example : Returns : Args : the ontology term to persist _persist_relationship Title : _persist_relationship Usage : Function: Persists a relationship to the database, using either a previously set persistence handler, or the adaptor factory directly. Example : Returns : Args : the term relationship to persist _persist_ontology Title : _persist_ontology Usage : Function: Perists the ontology itself to the database, by either inserting or updating it. Note that this will only create or update the ontology as an entity, not any of its terms, relationships, or relationship types. Example : Returns : the ontology as a peristent object with primary key Args : the ontology to persist as a Bio::Ontology::OntologyI compliant object perl v5.14.2 2012-03-02 Bio::OntologyIO::Handlers::InterPro_BioSQL_Handler(3pm)
All times are GMT -4. The time now is 05:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy