Передача по каналу потока в tar на FreeBSD

Если Вы работаете на основе https, рассматриваете использование клиентских сертификатов.

Если Вы не делаете, настраиваете защищенную страницу, которая даст Вам don't-count-my-hits cookie.

Я предполагаю, что Вы имеете полный контроль над своим пораженным страницей механизмом количества.:)

0
задан 13 June 2014 в 04:36
1 ответ

In the first command:

echo $ARCHIVE | tar xz -C $TMPDIR

This is piping the file name into tar, not the contents of the file. How this is working is beyond me.

In the final command you list:

tail -n+$ARCHIVE $0 | tar zxf - -C $TMPDIR

I think this is specifying the file name as the argument to "tail", which probably isn't going to work either. Even if ${ARCHIVE} is a number, you still can't pipe the tail of an archive to tar, you need to give it the whole archive. Why are you calling tail here at all? A better solution might be:

tar xzvf ${ARCHIVE} -C ${TMPDIR}

0
ответ дан 5 December 2019 в 13:48

Теги

Похожие вопросы