Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can VFP work with redirection pipes?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00322102
Message ID:
00322156
Views:
23
>The reason I am looking into this is I want to be able to do keyword searches on text files for a Web search routine. Currently my Web server is on Linux and I'm switching to NT. On Linux, I'm using a freeware indexing program called "Glimpse". I simply call it from a CGI script, put Tags in it from BBX and send it to the browser. On NT I am using AFP, which is working great, but I can't seem to find a command line indexing programming like glimpse. I do have a copy of grep for windows that will work (slower), but I need a way to call it and return the results to VFP to add tags.
>

NT = IIS = ASP - VBScript is available, and you can build a file and pass it to VFP, or populate an ADO recordset and pass it across a COM boundary to VFP, or instantiate a VFP COM object and send stuff across the COM interface. or populate a Scripting.Dictionary object and (you guessed it) pass it to VFP, or use the internal VB RegExpn parser to rip it to shreds and pass that to VFP, or write it in VB, or Java, or...

Does it appear you have infinitely many options, and the one thing that VFP doesn't do by itself, read from STDIN/write to STDOUT without someone doing this for it is not a problem? I don't know AFP from a hole in the wall, but this is not a problem, the required base tool for this would be either VBScript or Jscriprt, which both have regular expression parsing and can populate the disctionary object, and VFP doesn't need to do any of this...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform