Bash/FTP: How to create directories and subdirectories via FTP -


tried doing this:

ftp -nvd server01 <<- end user user01 password123 mkdir -p /dira/dirb/dirc/dird/ 

expected result:

/dira/dirb/dirc/dird/ should created in server01

actual result:

-p directory created in home directory of server01

the problem "-p" treated directory name instead of option mkdir command.

thanks in advance.

the dumb ftp client not support -p option argument mkdir, if require feature can use client does, e.g. lftp.


Comments