From owner-freebsd-questions@FreeBSD.ORG Mon Aug 24 13:26:18 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26C08106564A for ; Mon, 24 Aug 2009 13:26:18 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id DA0798FC08 for ; Mon, 24 Aug 2009 13:26:17 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1MfZYu-0004DQ-Aj for freebsd-questions@freebsd.org; Mon, 24 Aug 2009 15:26:16 +0200 Received: from 217.31.70.82 ([217.31.70.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Aug 2009 15:26:16 +0200 Received: from chris by 217.31.70.82 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Aug 2009 15:26:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: chris@chrullrich.net Date: Mon, 24 Aug 2009 15:25:52 +0200 Lines: 33 Message-ID: <5cws4t9wdb.fsf@chrullrich.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 217.31.70.82 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:hr3jAQp+JdxtOvBCqjxbhNWbeVw= Sender: news Subject: Problem with cURL and pipes 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: Mon, 24 Aug 2009 13:26:18 -0000 Hello all, there seems to be something wrong with sending data through pipes. I'm trying to upload files to an FTP server by piping them to cURL: These work: - curl < file-to-send ... - cat file-to-send | curl ... These don't: - gzip < file-to-send | curl ... - bzip2 < file-to-send | curl ... - cat file-to-send | rev | curl ... The compressed input in this case is about 7 MB, but it only sends up to 2 MB of that. Sometimes nothing, more often something in between. This is on 7-STABLE from this morning, but the same problem existed on 7-STABLE from ten months ago (I upgraded to see if that would fix it). This has worked flawlessly for several months, then started failing last week. Any ideas what might be the reason? Thanks for your help, -- Christian Ullrich