#!/bin/bash
## invokes lftp with one-line lftp-cmdline, received as cmdline-arg;  Eugene Reimer  2010-03:
## NOTE: script using this must first "source" WEBVARS to set vars FTP,USERID,PASSWORD;
## was a function in WEBGETLOGS, but may be useful elsewhere;
##
## BEWARE: avoid SEMICOLON, AMPERSAND, COMMA  in lftp-comments  -- as an unadvertised ill-advised "feature" it treats those as end-of-comment, tho COMMA is even weirder;
## BEWARE: furthermore, lftp's cd-command chokes if there's any comment on same line;

echo "==lftp ftp:$FTP uid:$USERID cmd:$@"
lftp << ENDOFHERE
open -u $USERID,$PASSWORD  $FTP
$@
quit
ENDOFHERE


exit
NOTES + CHANGE-LOG:
===================
needed for WEBVARS to "export" those vars, so they're available in a subshell;
