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 http://www.beenthere-donethat.org.uk The Unofficial Guide to Great Britain
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
Graham Trott gt@pobox.com wrote:
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.
I was using -e to see what the problem was. Using -c took me back to the normal bash prompt with no message of any sort.
For multiple commands I'd guess separating them with semicolons or using a shell script are the alternatives.
I can do it with a script but I want to be able to use the more flexible command line approach.
I'll try your suggestion of using semicolons.
Thanks
Barry Samuels http://www.beenthere-donethat.org.uk The Unofficial Guide to Great Britain
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?
Ignore the first part of my last post - I think I misread the command line sample.
-- GT
On 2004-01-06 20:12:16 +0000 Barry Samuels bsamuels@beenthere-donethat.org.uk wrote:
How is one supposed to enter a series of commands on the command line?
Similar to Graham, my untested guess: lftp -e 'open -u mylogin,mypassword mydomain ; ls'