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.

Suggestions?

link|improve this question
feedback

1 Answer

up vote 2 down vote accepted

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

link|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
feedback

Your Answer

 
or
required, but never shown

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