ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] lftp mirror
@ 2006-01-10  7:09 Eugene Prokopiev
  2006-01-10  7:14 ` Kostarev Alexey
  0 siblings, 1 reply; 7+ messages in thread
From: Eugene Prokopiev @ 2006-01-10  7:09 UTC (permalink / raw)
  To: Community

Здравствуйте!

Задача: зеркалить то, что доступно по 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 подробностей слишком 
много (причем тех, которые требуются нет), а дальше еще хуже. А нужно 
всего лишь количество скачанных/удаленных файлов (а если можно, то их 
список и размер) ...

Согласен на другие инструменты, лишь бы они решали поставленную задачу

-- 
С уважением, Прокопьев Евгений


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-01-10 16:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-10  7:09 [Comm] lftp mirror Eugene Prokopiev
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

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