M
M
Mortech2020-10-15 11:15:15
FTP
Mortech, 2020-10-15 11:15:15

FTP file transfer?

The question is probably extremely simple, but what am I doing wrong? Usually, when connecting via ssh/ftp, all such commands work without problems

-rw-r--r-- 1 evseit_ftp9 evseit_ftp9 20181 Oct 15 06:48 wp-settings.php
-rw-r--r-- 1 evseit_ftp9 evseit_ftp9 31159 Oct 15 06:48 wp-signup.php
-rw-r--r-- 1 evseit_ftp9 evseit_ftp9 4755 Oct 15 06:48 wp-trackback.php
-rw-r--r-- 1 evseit_ftp9 evseit_ftp9 3236 Oct 15 06:48 xmlrpc.php
[email protected]:~/domains/iamarealsitetrust.me/html$ get wp-signup.php
-bash: get: command not found

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drno, 2020-10-15
@Mortech

get not installed...
sudo apt install wget

K
Karpion, 2020-10-15
@Karpion

I don't really understand what you want to get. I used this script:

ftp -i -n севрер <<_END_
user юзер пароль
cd директория
get файл
_END_

Written in Russian letters - replace the meaning.
Starting with "cd directory" - you can enter any FTP protocol commands.
"_END_" is the key string; m.b. any, used twice.
Inside (between "ftp ..." and "_END_" - you can use ${переменная_окружения}and $(команда аргументы). Because of this, the dollar, ё-apostrophe and backslash must be backslashed.
The first line can be written with a backslash: ftp -i -n севрер <<\_END_- then the dollar and ё-apostrophes will not be special. symbols.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question