Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am connecting to a remote server that requires that I change my password every 90 days (WS_FTP Pro). The command to do that is "CPWD oldpass newpass".

I would like to do it using a script but I can't figure out how to send the CPWD command using lftp.


share|improve this question
up vote 2 down vote accepted

You want quote (your command). So, in your case, quote CPWD oldpass newpass

share|improve this answer
It doesn't work.------Command: SITE CPWD thispass thatpass----Response: 550 Command SITE failed-----If I use filezila and "Enter custom command..." I get/-----Command: CPWD thispass thatpass---Response: 250 CPWD successful – moniker Aug 20 '10 at 15:23
How about quote cpwd oldpass newpass? – Bill Weiss Aug 20 '10 at 15:43
in best carnival barker voice WINNAR! ty – moniker Aug 20 '10 at 16:02
Nice! I'll edit my answer to have the correct one. – Bill Weiss Aug 20 '10 at 16:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.