From: Eugene Prokopiev <prokopiev@stc.donpac.ru> To: Community@lists.altlinux.org Subject: [Comm] lftp mirror Date: Tue, 10 Jan 2006 10:09:41 +0300 Message-ID: <43C35DB5.8050607@stc.donpac.ru> (raw) Здравствуйте! Задача: зеркалить то, что доступно по ftp. lftp замечательно справляется, но как попросить его выводить в файл то, что он выводит на stdout? # lftp ftp://192.168.46.2 lftp 192.168.46.2:~> mirror -e hasher additional Total: 5 directories, 24 files, 0 symlinks New: 16 files, 0 symlinks Modified: 3 files, 0 symlinks lftp 192.168.46.2:/> exit # cat mirror-additional.sh #!/bin/sh lftp ftp://192.168.46.2 << EOF mirror -e hasher additional EOF # ./mirror-additional.sh # Самое очевидное - debug -o file, но уже на уровне 4 подробностей слишком много (причем тех, которые требуются нет), а дальше еще хуже. А нужно всего лишь количество скачанных/удаленных файлов (а если можно, то их список и размер) ... Согласен на другие инструменты, лишь бы они решали поставленную задачу -- С уважением, Прокопьев Евгений
next reply other threads:[~2006-01-10 7:09 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-01-10 7:09 Eugene Prokopiev [this message] 2006-01-10 7:14 ` Kostarev Alexey 2006-01-10 8:31 ` Eugene Prokopiev 2006-01-10 10:14 ` Kostarev Alexey 2006-01-10 11:21 ` Eugene Prokopiev 2006-01-10 11:44 ` Kostarev Alexey 2006-01-10 16:56 ` Eugene Prokopiev
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=43C35DB5.8050607@stc.donpac.ru \ --to=prokopiev@stc.donpac.ru \ --cc=Community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git