Received: from pacs04.infoave.net (IDENT:2121F702@pacs04.InfoAve.Net [165.166.0.14]) by hub.org (8.9.3/8.9.3) with ESMTP id LAA12866 for ; Thu, 22 Jul 1999 11:27:22 -0400 (EDT) (envelope-from lamar.owen@wgcr.org) Received: from www.wgcr.org ("port 2156"@[206.74.232.194]) by InfoAve.Net (PMDF V5.1-12 #23426) with ESMTP id <01JDV3DNH08Y96Y0H8@InfoAve.Net> for pgsql-interfaces@postgreSQL.org; Thu, 22 Jul 1999 11:27:08 EDT Received: from wgcr.org ([206.74.232.197]) by www.wgcr.org (8.8.7/8.8.5) with ESMTP id LAA01127; Thu, 22 Jul 1999 11:27:10 -0400 Date: Thu, 22 Jul 1999 11:25:11 -0400 From: Lamar Owen Subject: Re: [INTERFACES] invalid command name "pg_connect" on tcl/tk script To: Ahmad Munif Cc: pgsql-interfacespostgresqlorg Message-id: <379737D7.FFF501F8@wgcr.org> MIME-version: 1.0 X-Mailer: Mozilla 4.6 [en] (Win95; I) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en References: <379718F7.EB40BF18@dnet.net.id> Ahmad Munif wrote: > what's going on ? > > any one can help me to give me sample script to connect > to postgresql back end with tcl/tk ? Read the pgaccess script -- in particular, the section that loads libpgtcl.so. This whole script is an excellent example of accessing PostgreSQL from tcl/tk. If you do not have the pgaccess script, download the pgaccess tarball from ftp://www.flex.ro/pub/pgaccess, or from my server at http://206.74.232.196/postgres. You will be glad you looked over this script. Something like: load libpgtcl.so THEN you can use pg_connect et al. Lamar Owen WGCR Internet Radio