Date: Thu, 21 Nov 2002 20:28:01 -0500 From: John Barlow <barlow@starkube.net> To: freebsd-multimedia@FreeBSD.ORG Subject: running xmms from cron Message-ID: <3DDD8821.6090807@starkube.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DDD8821.6090807>