Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Start And Stop Process At A Certain Time?
Medic6666
post Sep 1 2003, 05:45 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 23
Joined: 10-March 03
Member No.: 535



I want to be able to have a sort of alarm clock that will play a xmms playlist at a certain time for a certain length of time.

IE..start @6am play a playlist for 1hour and then stop until next time set.

Is this possible???

cheers

Medic6666
Go to the top of the page
 
+Quote Post
hughesjr
post Sep 1 2003, 07:14 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



You will need to use the crontab (cronological table) to do that ... and you will need to be able to pass in a playlist to XMMS via the command line....

so to do this, you would edit your crontab with the command crontab -e

then you would enter the following lines (first type i if vim is you editor)

CODE
15 07 * * 1-5 /usr/bin/xmms --play /mnt/server1/archive/Music/
00 12 * * 1-5 /usr/bin/xmms -t
00 13 * * 1-5 /usr/bin/xmms -t
00 16 * * 1-5 killall /usr/bin/xmms


That will start playing at 07:15 on monday thru friday, and add all the songs in the directory /mnt/server1/archive/Music/ .... stop playing at 12:00pm and restart at 13:00pm and exit xmms at 16:00pm... all on monday to friday, local PC time.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2017 - 06:37 AM