Hot Topic (More than 10 Replies) Extractor in a web environment (Read 20947 times)
bcli
Member
*
Offline


No personal text

Posts: 4
Joined: Jul 16th, 2004
Extractor in a web environment
Jul 21st, 2004 at 6:50pm
Print Post Print Post  
Hello,

Hammer informs me that the "addition of Extractor allows data to be pulled live from an application and used to produce a dynamic web page. "

If someone has done this already, would you be willing to point me to a URL where I can see it in action and learn how it was implemented?

Thank you,

Marcus
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Extractor in a web environment
Reply #1 - Jul 21st, 2004 at 7:22pm
Print Post Print Post  
Extractor was only just released, so I doubt if anybody has set it up for public web use yet. We set it up here on an internal web server and it dropped right in. We can probably give you some guidance.

1. Do you own your server, or are you hosted on one of the $20 per month plans?

2. What operating system is your web server?

3. Do you know any web-based scripting languages, such as Perl or PHP?

4. Do you have much web development experience?

5. Are you familiar with running Sesame client-server?

6. How many simultaneous connections do you expect to need?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
bcli
Member
*
Offline


No personal text

Posts: 4
Joined: Jul 16th, 2004
Re: Extractor in a web environment
Reply #2 - Jul 21st, 2004 at 7:52pm
Print Post Print Post  
Hi Hammer,

1. We own our server
2. It's running Windows Server 2003 (IIS 6.0)
3. No, just CFML (ColdFusion Markup Language)
4. Not tons, I've managed one site for about 3 years and another for 6-7 years.
5. A little bit (emphasis on little!), about as much as the User Guide covers.
6. Most of the time just one. I think there hasn't ever been more than 3 simultaneous users of our static web database to date so for the foreseeable future max would be 5.

Thanks,

Marcus
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Extractor in a web environment
Reply #3 - Jul 21st, 2004 at 8:02pm
Print Post Print Post  
We got this process running on IIS with a small Perl script in a matter of minutes.

You'll need to have the Sesame Server running. You should probably use the flag on Extractor that keeps the database loaded, so it doesn't have to reload all the time.

If the server is publicly addressable, you'll probably want to make use of the allow and deny files to secure the Sesame Server connection.

If you want, I can post a small snippet of Perl showing how to run Extractor from a form and produce a web page. It may be next week before I can post it though, as the person who has this set up is on vacation this week.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Extractor in a web environment
Reply #4 - Jul 21st, 2004 at 8:19pm
Print Post Print Post  
BTW, with so few users, why don't you just give these folks copies of Sesame and let them hook up as normal Clients through the Internet?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Extractor in a web environment
Reply #5 - Jul 21st, 2004 at 8:21pm
Print Post Print Post  
Erika,

It would be great if Lantica could set up a demo site or web page so we can see this Extractor in action.

At the very least, it would help to see some screen shots of this tool in use.

It sounds like Extractor makes simple work out of something that I never thought I could do on my own.

Very tempting!

Steve
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Extractor in a web environment
Reply #6 - Jul 21st, 2004 at 8:25pm
Print Post Print Post  
Quote:
At the very least, it would help to see some screen shots of this tool in use.

It sounds like Extractor makes simple work out of something that I never thought I could do on my own.


Steve,

Extractor has no "screen", per se. It is a command line tool that runs invisibly. It performs some of the same types of functions that John Dow's DTFDATA program did for Q&A. The product page for Extractor has some examples of the output format.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Extractor in a web environment
Reply #7 - Jul 21st, 2004 at 8:39pm
Print Post Print Post  
OK. Thanks.

Without a GUI, I'm afraid I'll need more experience and training before I get into 'feeding' data to a web page.

I continue to 'learn' from this forum whenever possible.

Thanks,
Steve
  
Back to top
IP Logged
 
bcli
Member
*
Offline


No personal text

Posts: 4
Joined: Jul 16th, 2004
Re: Extractor in a web environment
Reply #8 - Jul 21st, 2004 at 8:44pm
Print Post Print Post  
Quote:
BTW, with so few users, why don't you just give these folks copies of Sesame and let them hook up as normal Clients through the Internet?


That's how many simultaneous or concurrent database users there are. The actual number of different IP addresses that have searched the database is somewhere in the thousands. And I'm sure most of them couldn't be bothered to install Sesame clients even if it were free!  Tongue
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Extractor in a web environment
Reply #9 - Jul 21st, 2004 at 8:47pm
Print Post Print Post  
Quote:
OK. Thanks.

Without a GUI, I'm afraid I'll need more experience and training before I get into 'feeding' data to a web page.

I continue to 'learn' from this forum whenever possible.

Thanks,
Steve


Extractor does not, in itself build a web page. All it does is extract data. That data can then (among other things) be handed off to a script written in Perl, PHP, C, etc. that can process the data and build a web page. You do need to have some knowledge of web scripting to do the complete process.

However, Extractor can be used outside the web environment for other purposes, such as mail merge, batch exports, etc.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Frederick_JH
Junior Member
**
Offline


Open Sesame . . . the
magic portal awaits!

Posts: 52
Joined: Jan 26th, 2004
Re: Extractor in a web environment
Reply #10 - Feb 4th, 2005 at 6:05pm
Print Post Print Post  
Quote:
If you want, I can post a small snippet of Perl showing how to run Extractor from a form and produce a web page.


Hi Hammer!

I know that this thread is old but I would like to see the perl used to produce a webpage from the data extracted by Sesame Extractor.

Thanks!

FJH
  

Frederick Henderson*Radio HRGS*Roatan*Bay Islands*Honduras
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Extractor in a web environment
Reply #11 - Feb 4th, 2005 at 8:02pm
Print Post Print Post  
Hello FJH,

There is actually two small perl scripts. The code for them is below. The first Perl script which I named extractor2.pl contains the following

Code
Select All
$temp=$ENV{'QUERY_STRING'};
@pairs=split(/&/,$temp);

foreach $item(@pairs)
{
	($key,$content)=split (/=/,$item,2);
	$content=~tr/+/ /;
	$content=~ s/%(..)/pack("c",hex($1))/ge;
	$fields{$key}=$content;
};

$LastName=$fields{'MyField'};

print "Content-type: text/html\n\n";
print "<FONT SIZE=6><p>The value you submitted was: <b>$LastName</b><br>";
print "Below you will find the results that have been returned from the database</p></FONT>";

system("G:\\Sesame\\Program\\extractor vagrant G:\\Sesame\\Data\\Samples\\Customers.db $LastName.. \"Last\" \"Last;First;Zip;Email\" 1 1 | D:\\Perl\\bin\\perl.exe G:\\inetpub\\wwwroot\\BuildPage.pl");
exit(0); 




The second one which I named BuildPage.pl contains the following. Note: The font size is set to be pretty big as this was displayed at the Sesame User's Conference on the big screen.
Code
Select All
while ($input = <STDIN>)
{
	#print($input);
	my @records = split(/\n/, $input);
	foreach my $line (@records)
	{
		@fields = split(/;/, $line);
		print "<FONT SIZE=6><P><B>Last Name:</B> @fields[0]<BR>";
		print "<B>First Name:</B> @fields[1]<BR>";
		print "<B>Zip Code:</B> @fields[2]<BR>\n";
		print "<B>E-Mail Address</B> <A HREF=\"Mailto:@fields[3]\">@fields[3]</A></FONT></P><BR>\n";
	}
} 



The form that calls the first perl script is just a simple form. It's source code is as follows.
Code
Select All
<html>
<head>
<title>Extractor Report</title>
</head>
<body>
<form method="GET" action="extractor2.pl">
<p><b><font face="Verdana" size="2">Please enter the beginning of the Person's Last Name,<BR>and then click the Submit button.</font></b><br>
<input type="text" name="MyField" size="20" value="">
<input type="submit" value="Submit" name="B1"></p>
</form>
</body>
</html>
 



If you already own extractor and bought it before the Sesame 1.1 release, you will want to contact Customer Service and ask them for the latest version of extractor. The older version of extractor will not work with Sesame 1.1.0

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Frederick_JH
Junior Member
**
Offline


Open Sesame . . . the
magic portal awaits!

Posts: 52
Joined: Jan 26th, 2004
Re: Extractor in a web environment
Reply #12 - Feb 5th, 2005 at 3:25am
Print Post Print Post  
Hi Ray!

Another question or two, The Sesame Extractor program, is this  a Windows based program only or is it also available for Linux?

Does Sesame have ODBC support for both Windows and Linux?

And, do you always write code without any comments to explain what your are doing or does perl not allow comments like Q&A?

Thanks again for your help!

FJH
  

Frederick Henderson*Radio HRGS*Roatan*Bay Islands*Honduras
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Extractor in a web environment
Reply #13 - Feb 5th, 2005 at 3:57pm
Print Post Print Post  
Quote:
Hi Ray!

Another question or two, The Sesame Extractor program, is this  a Windows based program only or is it also available for Linux?

Extractor is available for Linux.

Quote:
Does Sesame have ODBC support for both Windows and Linux?

No, the ODBC driver is only supported on Windows. You can, however, query a Sesame server on Linux from a Windows box running the ODBC driver. The ODBC driver acts as a client, and Sesame supports mix and match OSs between client and server.

Quote:
And, do you always write code without any comments to explain what your are doing or does perl not allow comments like Q&A?

The code Ray posted was written for internal use to test extractor. Is there some particular portion of it that you would like explained?
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Extractor in a web environment
Reply #14 - Feb 5th, 2005 at 10:49pm
Print Post Print Post  
Re ODBC, I don't know how that would interface with Extractor, but I have found that current ODBC does not provide access to data in sub databases. 

Hoping the next version will take care of that.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged