I put your code onto my lasso box and pointed it to my ftp server and
got the following map: (using LP8.1 and Fedora 4 on both boxes - and
several lines removed as well...)
map: (FileSize)=(4096), (FileModDate)=(Fri Oct 28 22:54:00 2005 ),
map: (FileSize)=(1718), (FileModDate)=(Wed Nov 02 22:29:00 2005 ),
I can see that with this as a starting point that it'd be quite easy to
synchronize servers with Lasso and its FTP tags. Thanks for the idea!
We have a few servers that need to have the same files on it. it'll be
nice to have a lasso event do the sync. Would you like to collaberate
with me on a script to pull files/dirs from a 'master' FTP server?
Marc Pope wrote:
>Has anyone had trouble having lasso logging into a FTP server? I can log in
>perfectly with Transmit or the Terminal, but not with Lasso. Here's my base
>code to do it:
You might also want to do an error check right after the code to see
what it returns.
Jim Van Heule
On Nov 6, 2005, at 7:40 PM, Marc Pope wrote:
> Has anyone had trouble having lasso logging into a FTP server? I
> can log in
> perfectly with Transmit or the Terminal, but not with Lasso. Here's
> my base
> code to do it:
> var:'dirs'=(FTP_GetListing: -URL=$ftp_url,
> iterate: $dirs, var:'date_dirs';
> $date_dirs '<br>';
> This code works fine with a different FTP site. The directory has
> folders in it, and I need to go through each folder and download the
> Lasso 8.1, Red Hat Linux Enterprise 4
> If anyone has any other way to sync ftp content from one server to
> using a cron job, please let me know.
> Marc Pope
> Lasso Support: http://support.omnipilot.com/ > Search the list archives: http://www.listsearch.com/lassotalk.lasso > Manage your list subscription: