Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.