Re: Help with the use of 'at' command On Feb 26, 8:44 pm, "Lew Pitcher" <lpitc...@sympatico.ca> wrote:
> On Feb 26, 1:34 pm, "jamiil" <jalqa...@gmail.com> wrote:
>
> > I am not sure if this is the right place to post question about UNIX
> > commands, so, at risk of being fertilized I will go on with my
> > quesion.
> > I want to noatun to start playing an mp3 file exacly at 4:21 pm.
> > 'noatun my.mp3' plays the my mp3 file, so.... 'at noatun my.mp3 4:21pm
> > ' should play the file, but 'at' complains, what am I doing wrong?
>
> You are entering the 'at' command incorrectly. You need to read the
> at(1) documentation ("man 1 at")
>
> But, to make it easier on you, try this...
>
> echo noatun my.mp3 | at 1621
Minor correction - try
echo DISPLAY=$DISPLAY noatun my.mp3 | at 1621
You need the DISPLAY environment variable to allow noatun to display
on your logged on X session. Of course, if you log off before noatun
runs at 1621, you won't own the display that the DISPLAY variable
points to, and noatun will crash with that "Error: Can't open display"
message
HTH
--
Lew |