LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   at + mpg321 how to do this? (https://www.linuxquestions.org/questions/linux-newbie-8/at-mpg321-how-to-do-this-474188/)

T0udi 08-15-2006 05:31 PM

at + mpg321 how to do this?
 
I would like to wake up with my favorite song, so how can I do this?
I've red the at manual and tried to do that but probably i'm doing something wrong :/
eg at 7:00 -c mpg321 /home/t0udi/1.mp3 ?

bigrigdriver 08-15-2006 05:56 PM

The correct name of the application is mpg123. You have it as mpg321.

bulliver 08-15-2006 06:13 PM

Quote:

The correct name of the application is mpg123. You have it as mpg321.
Not necessarily. mpg321 is a patent/encumbrance free clone of mpg123. Generally if you have *321 installed it is a symlink to *123 so that you may always use mpg123 in a script and it will work no matter which is installed.

See:
http://mpg321.sourceforge.net/about.html

Tinkster 08-15-2006 07:48 PM

Quote:

Originally Posted by T0udi
I would like to wake up with my favorite song, so how can I do this?
I've red the at manual and tried to do that but probably i'm doing something wrong :/
eg at 7:00 -c mpg321 /home/t0udi/1.mp3 ?

Try
Code:

echo "mpg321 /home/t0udi/1.mp3"|at 7:00

Cheers,
Tink

T0udi 08-15-2006 08:10 PM

Quote:

Originally Posted by Tinkster
Try
Code:

echo "mpg321 /home/t0udi/1.mp3"|at 7:00

Cheers,
Tink

That's perfect solution! Cheers! :)


All times are GMT -5. The time now is 08:14 AM.