vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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? As an excuse for the stupidity of my question, I must say, this is the first time I am using the 'at' command and that I am not an expert UNIX programmer. Thanks folks, and apologize if I am in the wrong newsgroup |
| |||
| 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 Note that to run a GUI application this way, you /must/ be logged on to your computer when the command executes. If you are not logged on, then the command will not be able to run on your desktop and you will get an email from at complaining Error: Can't open display: If you /want/ to use the at(1) command, use it to run a non-GUI application (like aplay for wav files or mpg123 for mp3 files) HTH -- Lew |
| |||
| 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 |
| |||
| Yes, you were right. However, if I type noatun my.mp3, I get 'noatun' the file playing, but when using your suggestion I get noatune, but it does not play the the mp3 file (!?). What am I doing wrong? Right now is 00 :30 here, so I will pack it up and try again tomorrow. Thanks!! On Feb 26, 8:57 pm, "Lew Pitcher" <lpitc...@sympatico.ca> wrote: > 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 |
| ||||
| jamiil wrote: > Yes, you were right. However, if I type noatun my.mp3, I get 'noatun' > the file playing, but when using your suggestion I get noatune, but it > does not play the the mp3 file (!?). spaces in filename? |
| Thread Tools | |
| Display Modes | |
|
|