From owner-freebsd-questions@FreeBSD.ORG Mon Mar 2 14:55:30 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 A5662106570D for ; Mon, 2 Mar 2009 14:55:30 +0000 (UTC) (envelope-from lacalling@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.169]) by mx1.freebsd.org (Postfix) with ESMTP id 7BCEB8FC0A for ; Mon, 2 Mar 2009 14:55:30 +0000 (UTC) (envelope-from lacalling@gmail.com) Received: by wf-out-1314.google.com with SMTP id 27so2348908wfd.7 for ; Mon, 02 Mar 2009 06:55:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=YynoeNWDzF+tM8kzgvFEeue74XRVEHI36HDmD5KkYDw=; b=smiklBcbkDkdyff7R39xwvgRE8c9Kl0azqoRq3oLdirN2xoUusljQWB4u/aqcEbwSy +sZgmXOw+g3P6G0Zg9wtJ0OnLpPVVq9bW9rbksBFSlXYHJsJyDYv3ZjKW7KGCe8yzF0u ZM22S5E7zoqVxf1OcuuqagIePSA6evRPONq6I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=xNIFyvWUwmM+NMtjp7e+tc7vTZsn4pnbGQ3fW1jdWwEwXeZSxx6dFBbMpUsranY0v2 Rkze2FFmAfln4XvsQ8tE1EmfXPuqRO1BVCKcAS++JgZiRYGfyvQkxR90D7WX6nTlqIJA bTBPmWpGZU18tFVAX2VtKSgw5zsjt5h6En4Hk= MIME-Version: 1.0 Received: by 10.142.221.11 with SMTP id t11mr3036427wfg.238.1236005729962; Mon, 02 Mar 2009 06:55:29 -0800 (PST) Date: Mon, 2 Mar 2009 22:55:29 +0800 Message-ID: From: lacalling To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: How to repeat playing mp3 with mpg123 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, 02 Mar 2009 14:55:31 -0000 Since mpg123 does not support repeat model, i tried to write a script to play mp3 repeatedly. I tried bash like this for((;;)) do mpg123 [mp3] & done but it keeps running new mpg123 in background . but mpg123 [mp3] in foreground cant be terminated by control C Could anyone provide more ideas. thank you.