From owner-freebsd-questions@FreeBSD.ORG Sat Feb 17 18:56:23 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 04D0D16A401 for ; Sat, 17 Feb 2007 18:56:23 +0000 (UTC) (envelope-from lists@lrnx.ath.cx) Received: from postfix2-g20.free.fr (postfix2-g20.free.fr [212.27.60.43]) by mx1.freebsd.org (Postfix) with ESMTP id 8882913C481 for ; Sat, 17 Feb 2007 18:56:22 +0000 (UTC) (envelope-from lists@lrnx.ath.cx) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by postfix2-g20.free.fr (Postfix) with ESMTP id 5C993B13310 for ; Sat, 17 Feb 2007 18:36:24 +0100 (CET) Received: from hermes.lrnx.net (fr141-1-82-237-217-212.fbx.proxad.net [82.237.217.212]) by smtp4-g19.free.fr (Postfix) with ESMTP id 5305E69C3; Sat, 17 Feb 2007 19:36:13 +0100 (CET) Received: from [192.168.1.19] (zstar.blois.fr.lrnx.local [192.168.1.19]) by hermes.lrnx.net (8.13.6/8.13.6) with ESMTP id l1HIaCvV049969; Sat, 17 Feb 2007 19:36:12 +0100 (CET) (envelope-from lists@lrnx.ath.cx) Message-ID: <45D74B17.7050305@lrnx.ath.cx> Date: Sat, 17 Feb 2007 19:36:07 +0100 From: Pierre-Francois LAURAND User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (hermes.lrnx.net [82.237.217.212]); Sat, 17 Feb 2007 19:36:12 +0100 (CET) X-Virus-Scanned: ClamAV 0.90/2590/Sat Feb 17 17:07:53 2007 on astra.blois.fr.lrnx.local X-Virus-Status: Clean Subject: Why this script does not work as expected ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Feb 2007 18:56:23 -0000 Hi, I'm trying to send dump files between 2 FreeBSD hosts ( 6.1 to 6.2 ) with this script : ------------------------------------------------------------------------ #!/bin/sh set -evx # # Launch nc in listen mode to recept datas on remote s-backup server. # /usr/bin/ssh -c blowfish backup@s-backup \ /usr/bin/nc -lv 24864 \>/backup/2007/02/s9_vol1_datas_20070216.dump & if [ ${?} -gt 0 ]; then exit 1 fi #read _ignore # # Dumping and sending datas to s-backup # /usr/bin/time /usr/bin/nice -n 20 /sbin/dump -C 16 -0 -f- /vol1 | \ /usr/bin/nc -v s-backup 24864 ------------------------------------------------------------------------ This dump should be ~20 Gb, but the the remote file is only filled with the first 1024 bytes ! Am I doing something wrong or missing something here ? Thanks for any help ! -- pf