From owner-freebsd-multimedia Thu Nov 21 12:27:46 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E97A737B401 for ; Thu, 21 Nov 2002 12:27:44 -0800 (PST) Received: from weber.siteprotect.com (weber.siteprotect.com [64.26.0.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4195D43E88 for ; Thu, 21 Nov 2002 12:27:44 -0800 (PST) (envelope-from barlow@starkube.net) Received: from starkube.net (bdsl.204.193.117.66.gte.net [204.193.117.66] (may be forged)) by weber.siteprotect.com (8.9.3/8.9.3) with ESMTP id OAA27118 for ; Thu, 21 Nov 2002 14:27:43 -0600 Message-ID: <3DDD8821.6090807@starkube.net> Date: Thu, 21 Nov 2002 20:28:01 -0500 From: John Barlow User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.1) Gecko/20021005 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@FreeBSD.ORG Subject: running xmms from cron Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Greetings, I would like to make cron open xmms and stream my favorite radio shows. Using crontab -e I created a schedule that follows this format: # wake up with KEXP 0622AM Monday - Friday 22 6 * * 1-5 oenomaus xmms /usr/home/oenomaus/streams/kexp.pls # listen to the news @ 0730 30 7 * * 1-5 oenomaus xmms /usr/home/oenomaus/streams/kuow.pls . . . and so on. The music never plays, however. I can open up an xterm (the machine is always running X as user oenomaus) and issue the command: xmms /usr/home/oenomaus/streams/kexp.pls and it starts right away. I have also tried using the url for that stream instead of the filename - this works fine from an xterm but I get nowhere running it from cron. I also tried playing a local .mp3 file as a cron job, but it failed to play. My hunch is that my cron request is being attempted at the console level and is not being passed to my X session, but even if I'm correct I don't have the first idea of how to specify a session, or whether it is even possible. If all else fails, I can probably use mpg321 to play some of the streams, but would prefer to use xmms and occasionally realplay. If anyone has something to suggest I'd be quite grateful. John Barlow To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message