小野寛生です。 エラーメッセージからすると、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 <[email protected]>: > 西村です > > 空白を除いてみました。結果は以下の様です > 昔は、cshを使っていたのですが、今はデフォルトなのでshだとおもいます。 デフォルトのシェルはtcshです。 > root@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@koubou9:/ # > > > > On 2015年02月28日 12:01, Hiroo Ono (小野寛生) wrote: >> >> 小野寛生です。 >> >> 2015年2月28日 11:45 yoshihome <[email protected]>: >>> >>> root@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 でしょうか? >> _______________________________________________ >> [email protected] mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-users-jp >> To unsubscribe, send any mail to >> "[email protected]" > > > _______________________________________________ > [email protected] mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-users-jp > To unsubscribe, send any mail to "[email protected]" _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-users-jp To unsubscribe, send any mail to "[email protected]"
