On Tuesday 06 January 2004 20:12, Barry Samuels wrote:
I've been struggling to get the lftp -c and -e options to work. There's no elaboration of the -c option in the man page and a search on the web produces nothing extra.
Does anyone know the proper syntax?
If, for example, I try:
lftp -e open -u mylogin,mypassword mydomain ls
All I get is:
lftp: ls: no address associated with name
How is one supposed to enter a series of commands on the command line?
Barry Samuels
Ignore the following if you get a REAL answer from someone who knows the program...
Looks to me like it's confusing ls with the optional site parameter. It seems the difference between -e and -c is the former executes the given commands then stays online (in an lfpt shell?) whereas -c does its stuff then exits. For multiple commands I'd guess separating them with semicolons or using a shell script are the alternatives.
-- G