[FreeBSD-users-jp 95470] Re: SSDコピーでハマってます。(西村)

Hiroo Ono (小野寛生) hiroo.ono+freebsd at gmail.com
Sat Feb 28 03:36:18 UTC 2015


小野寛生です。

エラーメッセージからすると、tcsh になっていると思います。
あと、今回のメールでは tar cf - . の "." が抜けています。

# sh
#  ( cd /mnt ; tar cf - . 2> /tmp/error-from.log ) | ( cd /mnt 2> ;
tar xf - 2> /tmp/error-to.log )
# exit

と sh を起動してからやってみてください。

2015年2月28日 12:10 yoshihome <ilovefd at topaz.plala.or.jp>:
> 西村です
>
> 空白を除いてみました。結果は以下の様です
> 昔は、cshを使っていたのですが、今はデフォルトなのでshだとおもいます。

デフォルトのシェルはtcshです。

> root at koubou9:/ # ( cd /mnt ; tar cf - 2> /tmp/error-from.log ) | ( cd /mnt2
> ; tar xf - 2> /tmp/error-to.log )
> tar: 2: Cannot stat: No such file or directory
> tar: 2: Not found in archive
> tar: Error exit delayed from previous errors.
> root at koubou9:/ #
>
>
>
> On 2015年02月28日 12:01, Hiroo Ono (小野寛生) wrote:
>>
>> 小野寛生です。
>>
>> 2015年2月28日 11:45 yoshihome <ilovefd at topaz.plala.or.jp>:
>>>
>>> root at koubou9:/ # ( cd /mnt ; tar cf - 2 > /tmp/error-from.log ) | ( cd
>>> /mnt2
>>> ; tar xf - 2 > /tmp/error-to.log )
>>> tar: 2: Cannot stat: No such file or directory
>>> tar: 2: Not found in archive
>>> tar: Error exit delayed from previous errors.
>>
>> "2>" のところは 2 と > の間に空白を入れないでください。あと、tcsh
>> だと標準エラー出力のみリダイレクトというのはできませんが、シェルは sh でしょうか?
>> _______________________________________________
>> freebsd-users-jp at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-users-jp
>> To unsubscribe, send any mail to
>> "freebsd-users-jp-unsubscribe at freebsd.org"
>
>
> _______________________________________________
> freebsd-users-jp at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-users-jp
> To unsubscribe, send any mail to "freebsd-users-jp-unsubscribe at freebsd.org"


More information about the freebsd-users-jp mailing list