[CLUE-Tech] FTP scripts to poll directory for a file?
Angelo Bertolli
angelo at freeshell.org
Mon Mar 1 00:28:12 MST 2004
Well how frequently do you want to poll?
wget -b -t 0 --waitretry=20 ftp://something/something/file
Will poll every 20 seconds
Jeff Cann wrote:
>Hi,
>
>Anyone have an FTP script that will poll a directory for a given file. For
>example, a process on a remote machine puts a file into a directory. Another
>machine (via FTP) will poll a directory for the expected file. Once the file
>is available, the FTP script gets it and removes it.
>
>Searches for 'FTP poll script' yield polls (as in do you favor George Bush),
>not polling (as in check for the file every 30 seconds).
>
>Mirror scripts are not useful in this case - the file is used to transfer
>process state across two machines.
>
>I appreciate any links or script examples.
>
>Jeff
>
>
More information about the clue-tech
mailing list