User Tools

Site Tools


jvs:fscan:manual:chapter2:connect

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
jvs:fscan:manual:chapter2:connect [2011/03/31 14:49] – external edit 127.0.0.1jvs:fscan:manual:chapter2:connect [2014/07/19 16:06] – [usage:] voyvodic
Line 35: Line 35:
 If you attempt to WRITE or QUERY a connection, that has not yet been opened, CONNECT will If you attempt to WRITE or QUERY a connection, that has not yet been opened, CONNECT will
 look for the HOSTPORT specification in a user variable called "connect_CNXNNAME" (where CNXNNAME is the name of the connection). If found, CONNECT will attempt an auto-connection to that network location before attempting the WRITE/QUERY.  This is equivalent to inserting the command:\\ look for the HOSTPORT specification in a user variable called "connect_CNXNNAME" (where CNXNNAME is the name of the connection). If found, CONNECT will attempt an auto-connection to that network location before attempting the WRITE/QUERY.  This is equivalent to inserting the command:\\
 +<code>
    -connect name $connect_name    -connect name $connect_name
-To use this feature the default HOSTPORT should be predefinedas in the [[jvs:fscan:manual:chapter1:configfile|CONFIG]] file.+</code> 
 +For exampleif you routinely connect to a DBAX database server, you could define 'connect_dbax' in your  [[jvs:fscan:manual:chapter1:configfile|CONFIG]] file as: 
 +    <uservarb name="connect_dbax">sagan.dhe.duke.edu:5570</uservarb> 
 +Then you could communicate with that server by simply using commands like: 
 +<code> 
 +   -connect dbax query "select subjid,exam,sex,age from exams" 2 examtable 
 +</code>
  
 **See Also:**\\ **See Also:**\\
jvs/fscan/manual/chapter2/connect.txt · Last modified: 2024/06/21 15:44 by 127.0.0.1