On Monday, April 12, 2004, at 02:26 PM, Brian E. Warshawsky wrote:
I want to write a simple app to
automate the task of retrieving log files from a bunch of different ftp
servers at the same time every night.

If libURL uses sockets callbacks, then they cannot run while while your hander is running.


You might try 'put URL'; see "URL" in the Transcript dictionary. That may not be the best for large files, though.

However, you might also consider putting a 'wait ... with messages' in your loop or, better yet, use 'send ... in ...'. See the Transcript dictionary and (for the latter) the primer on message mechanics at my web site. If you use 'send', you can set up a cycle that checks every (say) 40 seconds for midnight or you can calculate the seconds until midnight and send off a single send (per day). Make sure you only get one per midnight.

The use of 'send' allows the application to attend to button clicks (such as one for canceling log retrievals) and do other things.

Dar
--
****************************************
    Dar Scott Consulting
    http://www.swcp.com/dsc/
    Programming Services
****************************************

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to