Crontab and music problem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Crontab and music problem
# 1  
Old 09-17-2010
Crontab and music problem

hi people. i am new in linux and especialy puppy.
i am trying to use crontab to play and stop music at the certan time but have a problem.

crontab lines look something like this:

23 10 * * * pmusic -s pause (starts the player)
28 10 * * * pmusic -s pause (stops the player)

but when its finised with the first song (there is bunch in playlist) it just stops and at 28 10... it just starts again.

should i use some other player for this or tipe some other command? i used pmusic because its instaled when i instal puppy. and the puppy is here because it si an intel 400MHz with 128MB of ram.

sorry for the tipos and the gramar Smilie
# 2  
Old 09-17-2010
Quote:
Originally Posted by bobmg
but when its finised with the first song (there is bunch in playlist) it just stops and at 28 10... it just starts again.
I'm unable to find a manual page for pmusic, so it's commandline options are as much a mystery to me as you. How is the music player being started? Does it behave differently outside of crontab?

The audacious music player has better documented options including some allowing you to pick between sessions, so may be better suited for noninteractive control. It also has various plugins for remote control I think, if these are insufficient.

Last edited by Corona688; 09-17-2010 at 03:39 PM..
# 3  
Old 09-17-2010
I use ncmpcpp with mpd. Mighty fine for this use.

To get a quick answer you might try the puppy forum, where the program author is also participating:

Puppy Linux Discussion Forum :: View topic - Pmusic 1.3.1 - Audio player
Puppy Linux Discussion Forum :: View topic - Pmusic 1.3.1 - Audio player
# 4  
Old 09-20-2010
thanks people.
jostber i wrote on the forum and the program author says it is a bug. if you pres pause the next song won't play. it has a workaround but it won't do it for me. i try with this that you people recommended
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Crontab problem

Hi One shell script is running fine when I am running it through command line. However the same thing is not working when I am trying through cron. Basically when I debugged I found when I am running it throuh ssh terminal ( putty) it's getting loading the profile file properly but... (7 Replies)
Discussion started by: Anupam_Halder
7 Replies

2. Solaris

problem with crontab

hi all does any on has explanation for this result bash-3.00$ crontab -e "/var/tmp/Ex1kayUW" No space left on device The crontab file was not changed. bash-3.00$ (2 Replies)
Discussion started by: osmannix
2 Replies

3. Shell Programming and Scripting

Problem with crontab

Hi, I have one script which takes data from table and spools it into a file. When i am running manually all is fine but while trying same script thru crontab the spooled file is not getting generated..... :confused: The mail part is working fine....only prob is the spooled file. Please... (15 Replies)
Discussion started by: fidelis
15 Replies

4. Solaris

Crontab problem

Hi all, Why my crontab -e from root user is not accessible? It came out some sort of random number, 309. And also for other user, crontab -l came out crontab: can't open your crontab file. I'm grateful for any any help. thanks. (9 Replies)
Discussion started by: beginningDBA
9 Replies

5. UNIX for Advanced & Expert Users

crontab problem

hi.. i have a program (tf.sh), and i want what it runs automatically with a "lapsus" of 2 hours. (1,3,5,7,9,11,13,15,17,19,21,23 hrs.) i know what i have to do it using crontab, but i donīt know how to do it. i have the next idea, but the problem is what it doesnīt run on my server... (11 Replies)
Discussion started by: DebianJ
11 Replies

6. UNIX for Advanced & Expert Users

crontab problem

hi all while using crontab -e im receiving 754 as output im unable to add a entry in crontab crontab -l is working fine OS: sun5.8 can some one please assist me (4 Replies)
Discussion started by: NIMISH AGARWAL
4 Replies

7. UNIX for Dummies Questions & Answers

problem with crontab

i added to my crontab file: * * * * * echo "hello" it works, i receive a message into my /var/mail/username and i receive: bob in addition to a large text add-on any help appreciated (1 Reply)
Discussion started by: cleansing_flame
1 Replies

8. UNIX for Dummies Questions & Answers

Problem with Crontab

I have a problem with crontab. I made a class file name Mailer.class. When I run it at command line like this: $ java Mailer It runs very well and I got the email. But If I put it in a crontab line like this: 30 11 * * * java Mailer It doesn't work. Every time the cron job... (5 Replies)
Discussion started by: qhuynh
5 Replies

9. UNIX for Dummies Questions & Answers

Problem with crontab

I am trying to schedule a job to run through cron that checks for high CPU usage. The 'top' command is run and the output is logged to a file. A calculation is done in the file to check if CPU runs above 80%. If this happens an email is sent out. The problem I am having is that when I run this... (4 Replies)
Discussion started by: shehnaaz
4 Replies
Login or Register to Ask a Question