From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3561 216.34.176.0/20 X-Spam-Status: No, score=-3.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,T_DKIM_INVALID shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 6B8FD20285 for ; Sun, 27 Aug 2017 14:38:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from ) id 1dlyhX-00004t-2D; Sun, 27 Aug 2017 14:38:11 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from ) id 1dlyhV-0008WR-Mh for sox-users@lists.sourceforge.net; Sun, 27 Aug 2017 14:38:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date; bh=tindkVy65e8YSdpg/U38R7qEZ6umqt9INf0/gc9DKtc=; b=fdkEEs5o+QpxMXSfhjHlW1C2w+CBC1h0oVHKlluHe6cx5nMz9q4CRrCkO2nYVZ3Ic9cP2GO+G98Xaea8H2buXgN/pNdRwl68evcHxbT55cR0uoTbtCRfUYj7fEKbYJHpTpV1+qHwjYDV9C57mSmm9hjej75eMBgEhSwg399xwws=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date; bh=tindkVy65e8YSdpg/U38R7qEZ6umqt9INf0/gc9DKtc=; b=cKHblXGkFpz2Hwvovxrlz83lQi0vuOVFnb/Q2uVkmTa1hssftsLtCEnkC/QIH+mnOZCBlFQfZKzPWe5Hj+goqdWbz1ok6K+4N4a0lwnbYQrRrAx6CcjWqTe2IgkNGkgVETFCj9U/jlZ0un7CkzeKRkDrQk23VjHEnndpvZjp2lo=; X-ACL-Warn: Received: from mx.stare.cz ([79.98.77.229]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1dlyhT-0006kU-JW for sox-users@lists.sourceforge.net; Sun, 27 Aug 2017 14:38:09 +0000 Received: from www.stare.cz (localhost [127.0.0.1]) by www.stare.cz (OpenSMTPD) with ESMTP id 8879e0cd for ; Sun, 27 Aug 2017 16:37:59 +0200 (CEST) Date: Sun, 27 Aug 2017 16:37:59 +0200 From: Jan Stary To: sox-users@lists.sourceforge.net Message-ID: <20170827143759.GA52604@www.stare.cz> Mail-Followup-To: sox-users@lists.sourceforge.net References: <790552421.2332795.1503680652651.ref@mail.yahoo.com> <790552421.2332795.1503680652651@mail.yahoo.com> <20170825181114.oglvfwtf4gngkil4@fastmail.com> <1578890155.2797233.1503751347231@mail.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="7tpBJVE1EZipaTOj" Content-Disposition: inline In-Reply-To: <1578890155.2797233.1503751347231@mail.yahoo.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-Headers-End: 1dlyhT-0006kU-JW Subject: Re: Recording in chunks using sox X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-users@lists.sourceforge.net Errors-To: sox-users-bounces@lists.sourceforge.net --7tpBJVE1EZipaTOj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Aug 26 12:42:27, sox-users@lists.sourceforge.net wrote: > @Jan: Well am not getting any attachment in your message. sorry, attaching now --7tpBJVE1EZipaTOj Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=radio #!/bin/sh fatal() { echo $@ >&2 exit 1 } [ $# -ge 1 ] || fatal "usage: $0 station [length [outfile]]" STATION=${1} SECONDS=${2} OUTFILE=${3} CONFIG="$HOME/.radiorc" . $CONFIG || fatal "Config file $CONFIG not found, no stations defined" grep "^$STATION=" $CONFIG > /dev/null || fatal "Station '$STATION' not defined" eval URL=\$$STATION [ -z "$OUTFILE" ] && OUTFILE="$STATION-`date +%Y%m%d%H%M%S`.${URL##*.}" [ -e "$OUTFILE" ] && fatal "$OUTFILE already exists" if [ $# -eq 1 ] ; then play=`which play` || fatal "play(1) not found" $play $URL else ftp -g -p -V -o $OUTFILE $URL >/dev/null 2>&1 & PID=$! && [ "$PID" ] && ps -p $PID >/dev/null 2>&1 || fatal "Error downloading $URL" sleep $SECONDS && ps -p $PID >/dev/null 2>&1 || fatal "Process $PID downloading $OUTFILE already exited" kill -9 $PID >/dev/null 2>&1 fi --7tpBJVE1EZipaTOj Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=".radiorc" # Stations recognized by radio(1). This config file is # sourced directly, so keep it in valid sh(1) syntax. praha="http://icecast6.play.cz/cro2-128.mp3" vltava="http://icecast5.play.cz/cro3-128.mp3" wave="http://icecast5.play.cz/crowave-128.mp3" ddur="http://icecast5.play.cz/croddur-128.mp3" jazz="http://icecast1.play.cz/crojazz128.mp3" radio1="http://icecast1.play.cz/radio1.mp3" slow="http://icecast1.play.cz/slowradio160.mp3" --7tpBJVE1EZipaTOj Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot --7tpBJVE1EZipaTOj Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users --7tpBJVE1EZipaTOj--