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
jvs:fscan:manual:chapter2:connect [2011/03/31 14:49]
127.0.0.1 external edit
jvs:fscan:manual:chapter2:connect [2023/02/23 18:43] (current)
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.1301582953.txt.gz · Last modified: 2014/08/04 16:03 (external edit)