X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; q=dns; s=default; b=HEPv18eIewcLGYU0I7Aiu1/XxwTH MOMp9f5PGMtJTnQ0Rv1yOaKwdXwnYMDMWITCWazzUM5mAVpXNLXIYxsF0mej8sOY uvsyFvNvbLXWZ/D5Ccwa3VhjsIXik+6zV0U3S+Kv7/oSoX0Be4E4E8PmhiVlpEoj JEtwvtmw4kU6jbc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=default; bh=D7uAq4VCee3JY5kNYBffbJO/BUs=; b=ft i1QKGoG294YmgIGxUtKVFYmpKHkRXht0lxEeKaOQS31PGIF3HewkuvnAbLiSq3pd 7g5oSSlxUgip0zj6bklO+XEB6fdx2voxShpHpU03ukekaKI7Q9Py4iFHIclpm9Y0 M6ZR0XUdpli6pL3r8QHTmXxi0delNN71zopr7Xr5Q= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: etr-usa.com Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: file-transfer-over-soundcard From: Warren Young In-Reply-To: Date: Thu, 21 May 2015 13:15:24 -0600 Message-Id: References: <8604DCD9-8901-46AD-9FA1-D20543B09680 AT etr-usa DOT com> To: The Cygwin Mailing List X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t4LJFmxq030734 On May 21, 2015, at 1:03 AM, Spet wrote: > > When i execute from dos console: Why aren’t you using Cygwin Terminal instead? The Cygwin Terminal has a huge number of features missing from the Windows console, some of which allow it to work better with Cygwin programs. (UTF-8 support, for example.) Meanwhile, the DOS console offers zero advantage over the Cygwin Terminal when it comes to running Cygwin executables. > ./generate.exe -b 25 -r 48000 -o out.data /etc/fstab You’re trying to send *Cygwin’s* /etc/fstab to another box? Why? Typically the contents of that file are so trivial that it’s faster to just transcribe any changes in it when setting up a new box. Does "cat /etc/fstab" show something from the Cygwin Terminal? Anyway, it works here. I get a 25 MiB sound output file for a 531 byte /etc/fstab. > generate.exe -b 25 -r 48000 -o "k:\TEMP\a.txt" c:\cygwin\etc\fstab Are you sure you built it with the Cygwin C compiler, and not something else, like the MinGW or Visual Studio compilers? That’s the only explanation I can think of for why the POSIX path (/etc/fstab) would fail, but a DOS path would succeed. I have to ask: Why do you even want this software? It’s a neat hack, but I’m having trouble imagining a situation where you have two computers that each have Internet access in order to fetch Cygwin and this file transfer software, but they have no way to mutually communicate other than via a highly inefficient [*] communication link. I’ve run into real-world situations where one box doesn’t have Internet access and no way to attach an external storage device, so you’re left with hacks like uudecode and serial cables, but that doesn’t seem to be what’s going on here. [*] The Nyquist limit for 48 kHz sampling is 24,000 bps, but the article is recommending 25 bps, three orders of magnitude lower. Even if you could approach the Nyquist limit with better encoding, you’re still going to be transferring slower than a good RS-232 serial link. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple