I tried using kcron yesterday to schedule xmms to wake me up this morning, the way I've been using kalarm up to now (8.2/KDE 3.1.1). Well nothing happened at 7:00. Could the kalarm daemon be interfering with it since it's still running in the system tray with the alarm daemon still activated, although I deleted the particular alarm involved? Or is kcron a work in progress that doesn't work right? -- Bryce Hardy (Santa Rosa, CA) brycehdy@sonic.net
kcron is only a front end for the very stable and functionable cron daemon. See "man cron" for more infos. The cron daemon is absolutely independent of XFree graphic server and so it has no authentication to X and so it cannot start graphical applications. One could possibly tweak X-Server security to allow this (but I do _not_ recommend this!). If you are logged into KDE anyway and kalarm is working for you, then just create a new alarm which is not a text notice on the screen, but a command (you can choose, see the kalarm help). And as command, you can use xmms --play /path/to/playlist-or-file Another way would be to use a command line mp3 player and use cron jobs. A command line player doesn't need to have a connection to the graphic server and so it can run through a cronjob. You can use mpg123 to do this. Disadvantage: You don't have a player interface where you simply can stop the music or anything that way. Advantage is, that this will run even if you are not logged into your machine at all. Greets, Daniel Am Donnerstag, 23. Oktober 2003 16:14 schrieb Bryce Hardy:
I tried using kcron yesterday to schedule xmms to wake me up this morning, the way I've been using kalarm up to now (8.2/KDE 3.1.1). Well nothing happened at 7:00. Could the kalarm daemon be interfering with it since it's still running in the system tray with the alarm daemon still activated, although I deleted the particular alarm involved? Or is kcron a work in progress that doesn't work right?
-- Bryce Hardy (Santa Rosa, CA) brycehdy@sonic.net
On Thursday 23 October 2003 10:12 am, Daniel Eckl wrote:
kcron is only a front end for the very stable and functionable cron daemon. See "man cron" for more infos.
Yes, thanks I did that once and being a home user (schlub) it was a little too compikated for me...
The cron daemon is absolutely independent of XFree graphic server and so it has no authentication to X and so it cannot start graphical applications.
Thanks for that, it answers my question about why it didn't work.
If you are logged into KDE anyway and kalarm is working for you, then just create a new alarm which is not a text notice on the screen, but a command (you can choose, see the kalarm help). And as command, you can use xmms --play /path/to/playlist-or-file
Yep, that's what I've been doing, but I was looking for a more "linux" way of doing it, and also sometimes I do like to try out WindowMaker and other DEs so I wanted one that would work no matter which one I was logged into.
Another way would be to use a command line mp3 player and use cron jobs. A command line player doesn't need to have a connection to the graphic server and so it can run through a cronjob.
You can use mpg123 to do this. Disadvantage: You don't have a player interface where you simply can stop the music or anything that way. Advantage is, that this will run even if you are not logged into your machine at all.
Can't do that, since sometimes I need to quickly stop the music if my roommate is still sleeping :-) Thanks for your response Daniel. I'll just keep on using kalarm. -- Bryce Hardy (Santa Rosa, CA) brycehdy@sonic.net
Am Donnerstag, 23. Oktober 2003 20:30 schrieb Bryce Hardy:
You can use mpg123 to do this. Disadvantage: You don't have a player interface where you simply can stop the music or anything that way. Advantage is, that this will run even if you are not logged into your machine at all. Can't do that, since sometimes I need to quickly stop the music if my roommate is still sleeping :-)
Well, you can do that a very non-linux way: Hitting the power button of your speakers. :))) Have fun! Daniel
On Thu, 23 Oct 2003 07:14:22 -0700
Bryce Hardy
I tried using kcron yesterday to schedule xmms to wake me up this morning, the way I've been using kalarm up to now (8.2/KDE 3.1.1).
What is the line take got written to
/var/spool/cron/tabs/
Charles Philip Chan wrote:
What is the line take got written to /var/spool/cron/tabs/
? Also, if you just want an alarm clock with xmms, why not just use xmms-alarm- http://www.snika.uklinux.net/index.php?show=xmms-alarm ?
# DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/kde-bryce/kcronUDNXnb.tmp installed on Wed Oct 22 10:20:37 2003) # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Ext$) # Wake Me Up 0 7 * * 3,4,5,6,7 xmms /home/bryce/Documents/Music/"Blondie #Compilation"/shayla.ogg # This file was written by KCron. Copyright (c) 1999, Gary Meyer # Although KCron supports most crontab formats, use care when editing. # Note: Lines beginning with "#\" indicates a disabled task. I didn't know about xmms-alarm. Thanks for the tip. --- Bryce Hardy (Santa Rosa, CA) brycehdy@sonic.net
On Thu, 23 Oct 2003 13:27:51 -0700
Bryce Hardy
# Wake Me Up 0 7 * * 3,4,5,6,7 xmms /home/bryce/Documents/Music/"Blondie #Compilation"/shayla.ogg
Hum, how come the line is commented out (is the "enable" checkbox checked for that entry in Kcron?)? You can also manually take the # out and make sure that it is all on one line. You should also quote the file name since you have spaces, like thus: "/home/bryce/Documents/Music/Blondie Compilation/shayla.ogg" Also, are you sure cron is running? What is the output of ps aux | grep cron
I didn't know about xmms-alarm. Thanks for the tip.
You are welcome. Charles -- "Problem solving under linux has never been the circus that it is under AIX." (By Pete Ehlke in comp.unix.aix)
Charles Philip Chan wrote:
Hum, how come the line is commented out (is the "enable" checkbox checked for that entry in Kcron?)?
Yes, it is. I did some editing in the email that might explain the extra #s.
You can also manually take the # out and make sure that it is all on one line. You should also quote the file name since you have spaces, like thus:
"/home/bryce/Documents/Music/Blondie Compilation/shayla.ogg"
I just entered the command exactly as though I were at a console or command line. It worked in kalarm.
Also, are you sure cron is running? What is the output of
ps aux | grep cron
root 933 0.0 0.5 1520 656 ? S 13:13 0:00 /usr/sbin/cron bryce 1553 0.0 0.4 3544 568 pts/0 S 14:29 0:00 grep cron Most of that is Greek to me, I think it means it is... Thanks for your time in helping out. I'm starting to think that beat up old "alarm clock" (???) next to my bed might still be useful. :-) --- Bryce Hardy (Santa Rosa, CA) brycehdy@sonic.net
On Thu, 23 Oct 2003 14:38:15 -0700
Bryce Hardy
root 933 0.0 0.5 1520 656 ? S 13:13 0:00 /usr/sbin/cron
This means that cron is running. It look like your problem is that the entry is not enabled in Kcron judging by the #.
Thanks for your time in helping out. I'm starting to think that beat up old "alarm clock" (???) next to my bed might still be useful. :-)
Actually xmms-alarm works pretty well. Charles -- "...and scantily clad females, of course. Who cares if it's below zero outside" (By Linus Torvalds)
participants (3)
-
Bryce Hardy
-
Charles Philip Chan
-
Daniel Eckl