<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
GCC Consulting wrote:
<blockquote cite="mid:008801c9b0ce$2b434430$81c9cc90$@net" type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:filepro-list-bounces+gccconsulting=comcast.net@lists.celestial.com">filepro-list-bounces+gccconsulting=comcast.net@lists.celestial.com</a>
</pre>
</blockquote>
<pre wrap=""><!---->[<a class="moz-txt-link-freetext" href="mailto:filepro-list-bounces+gccconsulting=comcast.net@lists.celestial.com">mailto:filepro-list-bounces+gccconsulting=comcast.net@lists.celestial.com</a>]
On
</pre>
<blockquote type="cite">
<pre wrap="">Behalf Of Boaz Bezborodko
Sent: Thursday, March 26, 2009 5:07 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>
Subject: Best way to poll for existence of a file?
I am updating a shipping system to integrate with UPS's Worldship. I
was going to use their "Hands-Off" shipping method that polls for the
existence of a data file in a specific directory and imports the data if
something exists. It can then generate a file with shipping data like
tracking number and freight charges to a specific file. I want to poll
for that file with FPro and import the data when it exists. I am using
Windows FP 5.6 off a Samba server.
I was thinking of just setting up one rclerk or rreport operation to
just sit there and check for the existence of the file every couple of
seconds or minutes (using SLEEP) and import the data when something
exists. It just seems a little cludgy to me. Does anyone know of any
more elegant solution to doing this?
BTW, best of luck to all of those attending the meeting.
Boaz
</pre>
</blockquote>
<pre wrap=""><!---->
Short of using ODBC, What I have done in the past is have as part of the end
of day operation of Worldship, output a csv file with the information I
needed. Since you are running in *nix (my app is Windows), you would start
a cron job to read in this file and processes the information any way you
need to. Once the data has been processed, my program moves this file to an
archive directory.
Richard Kreiss
GCC Consulting
<a class="moz-txt-link-abbreviated" href="mailto:rkreiss@gccconsulting.net">rkreiss@gccconsulting.net</a>
</pre>
</blockquote>
The thing is that even though the file-server is running on Linux I am
running FP as a Windows operation so CRON won't work as I can't execute
the task as a Linux process. I guess my only choice is to have a
FilePro task running in the background constantly checking for a file.<br>
<br>
Boaz<br>
</body>
</html>