Scheduling Ubuntu to "Wake Up"
Peter Garrett
peter.garrett at optusnet.com.au
Fri Oct 26 17:13:05 UTC 2007
On Thu, 25 Oct 2007 18:48:42 -0700
Patton Echols <p.echols at comcast.net> wrote:
> Forgive me for being dense, but I lurk a lot and try to learn . . .
>
> On 10/25/2007 03:54 PM, Kenneth P. Turvey wrote:
> > On Thu, 25 Oct 2007 13:52:11 -0400, Daniel George Pevny wrote:
> >
> >
> >> Thank for for the response, Kenneth. Could you give me an example for
> >> how the command is used? (ie. a playlist file everyday @ 5:45 am)
> >>
> >
> > chmod /home/me/mymusic/somthing_i_like
> >
>
> Ok, what does that have to do with it?
I think he meant to type "cd", not "chmod" - it's just a way to be in the
right directory. "play /home/me/mymusic/somthing_i_like/filename " would
also work fine - "at" does the cd anyway.
>
> > at 5:45 AM
> >
> >> play *.mp3
> >>
> > [Hit ctrl-d here]
> >
> >
>
> I understood that "at" runs a shell command at the appropriate time, so
> is "play *.mp3" shorthand for something else? Like whatever command
> line player you use? Or is it something else entirely
"play" is a command line front end for "sox" - it will play Ogg Vorbis and
mp3.
$ dlocate /usr/bin/play
sox: /usr/bin/play
So you would need "sox" installed.
Using *.mp3 just means "play all the mp3 files in the directory" ( * is a
wildcard matching any number of characters, so anything ending in .mp3
will be played.) You can stop the music playing with CTRL+C , for example.
--
Peter Garrett <peter.garrett at optusnet.com.au>
More information about the ubuntu-users
mailing list