dil: (Default)
dil ([personal profile] dil) wrote2009-09-28 03:01 pm

Искусственный интеллект

Оригинал этой записи в личном блоге.
Любые материалы из этого блога запрещается использовать на сайте livejournal.ru в любой форме и любом объёме.

[identity profile] schors.livejournal.com 2009-11-23 05:11 pm (UTC)(link)
tar | ssh | tar не? Вроде должен работать

[identity profile] schors.livejournal.com 2009-11-23 05:11 pm (UTC)(link)
tar | ssh | tar не? Вроде должен работать

[identity profile] alexott.livejournal.com 2009-11-23 05:16 pm (UTC)(link)
sftp?

[identity profile] lslarry.livejournal.com 2009-11-23 05:17 pm (UTC)(link)
поднять иной сервис на левом порту?

[identity profile] dil.livejournal.com 2009-11-23 05:27 pm (UTC)(link)
чтобы его поднять, надо сначала туда забросить реализующую его программу, а scp не работает :)

и вообще, это перебор :)

(no subject)

[identity profile] lslarry.livejournal.com - 2009-11-23 20:53 (UTC) - Expand

(no subject)

[identity profile] dil.livejournal.com - 2009-11-23 22:00 (UTC) - Expand

(no subject)

[identity profile] lslarry.livejournal.com - 2009-11-23 20:55 (UTC) - Expand

(no subject)

[identity profile] dil.livejournal.com - 2009-11-23 22:00 (UTC) - Expand

[identity profile] b-a-t.livejournal.com 2009-11-23 05:21 pm (UTC)(link)
rsync :)?

cat file | ssh host "cat - > file"

shar `find . -print` | ssh host "sh -"

[identity profile] debug.livejournal.com 2009-11-23 05:21 pm (UTC)(link)
tar -c directory -f - | ssh -c blowfish user@host "tar -C /where/to/copy/ -xvf -"
scp при этом не используется

[identity profile] andjel.livejournal.com 2009-11-23 05:22 pm (UTC)(link)
Очень примерно так
tar cvf – /data | ssh otherhost tar xvf -
суть понятна

[identity profile] webushka.livejournal.com 2009-11-23 05:30 pm (UTC)(link)
Хм.
cat filename | ssh hostname cat >filename

[identity profile] bormotov.livejournal.com 2009-11-23 05:36 pm (UTC)(link)
вызывать ssh'ем там какой-нибудь cat/tar/итд работающее с stdin??

[identity profile] zavetrom.livejournal.com 2009-11-23 05:37 pm (UTC)(link)
как то так например:

tar cf - /папочка | ssh admin@host "tar xpf -"

вариант?
или через ssh поднять туннель, и nc гонять данные туда-сюда....

[identity profile] 1master.livejournal.com 2009-11-23 05:43 pm (UTC)(link)
А uudecode там есть? :)

(no subject)

[identity profile] 1master.livejournal.com - 2009-11-23 17:50 (UTC) - Expand

(no subject)

[identity profile] dil.livejournal.com - 2009-11-23 18:00 (UTC) - Expand

(no subject)

[identity profile] 1master.livejournal.com - 2009-11-23 18:21 (UTC) - Expand

(no subject)

[identity profile] dil.livejournal.com - 2009-11-23 18:23 (UTC) - Expand

(no subject)

[identity profile] 1master.livejournal.com - 2009-11-23 18:26 (UTC) - Expand

(no subject)

[identity profile] dil.livejournal.com - 2009-11-23 18:31 (UTC) - Expand

[identity profile] 1master.livejournal.com 2009-11-23 05:49 pm (UTC)(link)
А по сложному сценарию тот же вопрос про любой архиватор. Да хоть tar.

[identity profile] tullamoredew.livejournal.com 2009-11-23 05:53 pm (UTC)(link)
sshfs удаленно маунтить можно?

ну и вообще, копировать можно многими способами, вплоть до cat source>dest или тупо поднять nc

[identity profile] dil.livejournal.com 2009-11-23 10:04 pm (UTC)(link)
фиг его знает. он в варианте без scp замаунтится?

nc нету

(no subject)

[identity profile] dil.livejournal.com - 2009-11-24 09:56 (UTC) - Expand

[identity profile] mik1.livejournal.com 2009-11-23 05:54 pm (UTC)(link)
fetch/lynx/wget тоже отсутствует? сферический конь в вакууме?)

[identity profile] dil.livejournal.com 2009-11-23 05:56 pm (UTC)(link)
production server. ничего лишнего там нет из соображений безопасности. ни fetch, ни lynx, ни wget, ни cc.

(no subject)

[identity profile] mik1.livejournal.com - 2009-11-23 17:58 (UTC) - Expand

(no subject)

[identity profile] dil.livejournal.com - 2009-11-23 18:01 (UTC) - Expand

(no subject)

[identity profile] mik1.livejournal.com - 2009-11-23 18:04 (UTC) - Expand

(no subject)

[identity profile] dil.livejournal.com - 2009-11-23 18:08 (UTC) - Expand

(no subject)

[identity profile] dil.livejournal.com - 2009-11-23 22:05 (UTC) - Expand

(no subject)

[identity profile] dil.livejournal.com - 2009-11-24 07:41 (UTC) - Expand

(no subject)

[identity profile] dil.livejournal.com - 2009-11-23 18:22 (UTC) - Expand

(no subject)

[identity profile] mik1.livejournal.com - 2009-11-23 18:54 (UTC) - Expand

(no subject)

[identity profile] mik1.livejournal.com - 2009-11-23 18:59 (UTC) - Expand

(no subject)

[identity profile] dil.livejournal.com - 2009-11-23 17:58 (UTC) - Expand

[identity profile] blog.vnaum.com (from livejournal.com) 2009-11-23 05:55 pm (UTC)(link)
tar c $DIR| ssh $HOST 'tar x'

[identity profile] jerom.livejournal.com 2009-11-23 05:56 pm (UTC)(link)
rz/sz и т.п. нету?

[identity profile] dil.livejournal.com 2009-11-23 06:02 pm (UTC)(link)
нету. нафига они на веб-сервере?

[identity profile] jerom.livejournal.com 2009-11-23 05:58 pm (UTC)(link)
А perl есть?

[identity profile] dil.livejournal.com 2009-11-23 06:04 pm (UTC)(link)
не-а. не поставили, гады.
питона и ruby тоже нету.

(no subject)

[identity profile] dmarck.livejournal.com - 2009-11-23 18:23 (UTC) - Expand

(no subject)

[identity profile] ivlad.livejournal.com - 2009-11-23 18:24 (UTC) - Expand

(no subject)

[identity profile] dma.livejournal.com - 2009-11-23 19:48 (UTC) - Expand

[identity profile] dmarck.livejournal.com 2009-11-23 06:34 pm (UTC)(link)
Альтернатива: chmod есть? тогда

cat file | ssh remote-host "cat >file && chmod +x file"

но это менее приятно, потому что пофайлово.

ещё есть apply(1), если что ;-P

[identity profile] rough_enough.livejournal.com 2009-11-23 06:48 pm (UTC)(link)
что-то вроде tar czf - sourcedata | ssh user@remote_host "cat > ~/hereweare.tar.gz"

[identity profile] shadowtramp.livejournal.com 2009-11-23 06:49 pm (UTC)(link)
tar -zc file.mask | ssh $HOSTNAME 'ssh -zx'

это из какого-то man-а

или в чём вопрос?

[identity profile] bsv9.livejournal.com 2009-11-23 06:50 pm (UTC)(link)
cat somefile | ssh user@host 'cat > somefile'

или если много файлов
tar cf - dir | ssh user@host 'cat > some.tar.gz'

[identity profile] alexkuklin.livejournal.com 2009-11-23 07:11 pm (UTC)(link)
tar, чо.
примерно так:
tar -cf - scp | ssh host tar -xf -

[identity profile] lazyreader.livejournal.com 2009-11-23 07:15 pm (UTC)(link)
Делов-то.

cat filename | ssh remotehost "sh -c cat >filename"

tar -c file anotherfile somefiles* | ssh remotehost tar -x

В последнем случае придётся потом переместить полученное дерево куда надо.

[identity profile] kiltum.livejournal.com 2009-11-23 07:26 pm (UTC)(link)
почитал комменты ... жгут :)

когда много файлов

tar cf - catalog|ssh usr@host tar xf -

когда один

cat | ssh "cat > file"

Page 1 of 2