Re: [ILUG-BOM] experiment in cron

2010-09-25 Thread Nitesh Mistry
On Fri, Sep 24, 2010 at 07:26:40AM +0530, Rony wrote: On Thursday 23 September 2010 03:29 PM, Nitesh Mistry wrote: AND with mpg123, I don't need to run it with sudo or in root's cron. Simply adding 'mpg123song.mp3' to my user's cron works even when I am not logged in. Great.

Re: [ILUG-BOM] experiment in cron

2010-09-25 Thread Rony
On Friday 24 September 2010 10:00 PM, Yohan Pereira wrote: On Friday 24 September 2010 7:47:05 pm Rony wrote: Yes. I think it is the permission thing that Rajeev has mentioned. Probably .. but why would it continue? woudnt it just quit with an error msg the first time? The

Re: [ILUG-BOM] experiment in cron

2010-09-25 Thread Rony
On Saturday 25 September 2010 11:50 AM, Nitesh Mistry wrote: Sorry for creating confusion. Next time, will bear in mind to test properly. Also updated my blog post [0] accordingly. Its amazing how much you discover when you do the stuff yourself instead of just following 'how-tos' from the

Re: [ILUG-BOM] experiment in cron

2010-09-24 Thread Rajeev R. K.
On Fri, Sep 24, 2010 at 7:26 AM, Rony gnulinux...@gmail.com wrote: On Thursday 23 September 2010 03:29 PM, Nitesh Mistry wrote: AND with mpg123, I don't need to run it with sudo or in root's cron. Simply adding 'mpg123song.mp3' to my user's cron works even when I am not logged in.

Re: [ILUG-BOM] experiment in cron

2010-09-24 Thread Nitesh Mistry
On Fri, Sep 24, 2010 at 07:26:40AM +0530, Rony wrote: On Thursday 23 September 2010 03:29 PM, Nitesh Mistry wrote: AND with mpg123, I don't need to run it with sudo or in root's cron. Simply adding 'mpg123song.mp3' to my user's cron works even when I am not logged in. Great. I tried it

Re: [ILUG-BOM] experiment in cron

2010-09-24 Thread Nitesh Mistry
On Thu, Sep 23, 2010 at 04:01:09PM +0530, Nitesh Mistry wrote: On Thu, Sep 23, 2010 at 03:45:44PM +0530, steve wrote: The only drawback that I see with this is that mpg123 does not play my .ogg files. How about ogg123 ? You might then want to script using the right player for depending

Re: [ILUG-BOM] experiment in cron

2010-09-24 Thread Rony
On Friday 24 September 2010 10:12 AM, Yohan Pereira wrote: On Friday 24 September 2010 7:26:40 am Rony wrote: Great. I tried it again in user but I still need to be logged in to at least one session, console or gui. The funny part is that if I log out, the song stops there and continues

Re: [ILUG-BOM] experiment in cron

2010-09-24 Thread Rony
On Friday 24 September 2010 11:59 AM, Rajeev R. K. wrote: I think the culprit here is the permissions system. Usually, Systems like PackageKit assign permissions to various devices to allow normal user access without having to manually add users to various groups. If you remember the good old

Re: [ILUG-BOM] experiment in cron

2010-09-24 Thread Yohan Pereira
On Friday 24 September 2010 7:47:05 pm Rony wrote: Yes. I think it is the permission thing that Rajeev has mentioned. Probably .. but why would it continue? woudnt it just quit with an error msg the first time? when i used pulseaudio(ubuntu) it used to do stuff like say your listening to

Re: [ILUG-BOM] experiment in cron

2010-09-23 Thread Nitesh Mistry
On Wed, Sep 22, 2010 at 08:42:01PM +0530, Rony wrote: I downloaded 'mpg123' from apt and created an executable script to run 'mpg123 song.mp3' and the script worked fine. Then I added it to the user cron job but it did not play without login. However the same script plays the song with the

Re: [ILUG-BOM] experiment in cron

2010-09-23 Thread steve
Hi, On 09/23/2010 03:29 PM, Nitesh Mistry wrote: On Wed, Sep 22, 2010 at 08:42:01PM +0530, Rony wrote: I downloaded 'mpg123' from apt and created an executable script to run 'mpg123 song.mp3' and the script worked fine. Then I added it to the user cron job but it did not play without

Re: [ILUG-BOM] experiment in cron

2010-09-23 Thread Nitesh Mistry
On Thu, Sep 23, 2010 at 03:45:44PM +0530, steve wrote: The only drawback that I see with this is that mpg123 does not play my .ogg files. How about ogg123 ? You might then want to script using the right player for depending on the file type. Thanks for the tip Thanks all of you!

Re: [ILUG-BOM] experiment in cron

2010-09-23 Thread Rony
On Thursday 23 September 2010 03:29 PM, Nitesh Mistry wrote: AND with mpg123, I don't need to run it with sudo or in root's cron. Simply adding 'mpg123song.mp3' to my user's cron works even when I am not logged in. Great. I tried it again in user but I still need to be logged in to at

Re: [ILUG-BOM] experiment in cron

2010-09-23 Thread Mehul Ved
On Thu, Sep 23, 2010 at 3:45 PM, steve st...@lonetwin.net wrote: On 09/23/2010 03:29 PM, Nitesh Mistry wrote: The only drawback that I see with this is that mpg123 does not play my .ogg files. How about ogg123 ? You might then want to script using the right player for depending on the file

Re: [ILUG-BOM] experiment in cron

2010-09-23 Thread Yohan Pereira
On Friday 24 September 2010 7:26:40 am Rony wrote: Great. I tried it again in user but I still need to be logged in to at least one session, console or gui. The funny part is that if I log out, the song stops there and continues after I log in again. i think this is probably because of pulse

Re: [ILUG-BOM] experiment in cron

2010-09-23 Thread jtd
On Friday 24 September 2010 07:26:40 Rony wrote: On Thursday 23 September 2010 03:29 PM, Nitesh Mistry wrote: AND with mpg123, I don't need to run it with sudo or in root's cron. Simply adding 'mpg123song.mp3' to my user's cron works even when I am not logged in. sox options to generate

Re: [ILUG-BOM] experiment in cron

2010-09-22 Thread Anurag
2010/9/21 Nitesh Mistry mail...@mistrynitesh.net: When I am not logged in, cron still executes the command (as I can see from the syslog) but there is no output. And no message from cron for this instance. normally, cron would mail you the output of the run. check that user's mail. Anurag --

Re: [ILUG-BOM] experiment in cron

2010-09-22 Thread Nitesh Mistry
On Wed, Sep 22, 2010 at 12:07:22AM +0530, steve wrote: Look only if you /want/ step-by-step instructions, if you want to discover the way to achieve it by trial-n-error don't click: http://www.google.com/search?q=linux+cron+music+alarm I am in no mood for clicking. :D -- Regards, Nitesh

Re: [ILUG-BOM] experiment in cron

2010-09-22 Thread Rony
On Wednesday 22 September 2010 12:20 PM, Nitesh Mistry wrote: On Wed, Sep 22, 2010 at 12:07:22AM +0530, steve wrote: Look only if you /want/ step-by-step instructions, if you want to discover the way to achieve it by trial-n-error don't click:

Re: [ILUG-BOM] experiment in cron

2010-09-21 Thread Rony
On Monday 20 September 2010 11:49 PM, Nitesh Mistry wrote: I am doing this little experiment in cron, but not able to make it work. I want cron to play a certain mp3 file at a certain time. So I add the usual time parameters and add the following to the command field: /usr/bin/ffplaypath to

Re: [ILUG-BOM] experiment in cron

2010-09-21 Thread Rony
On Tuesday 21 September 2010 12:35 AM, Yohan Pereira wrote: stupid, easy, security issue, solution run it as root? Hi. Please trim your message. For a one line reply, an entire A4 page sized text was used up. -- As a proper list etiquette... Please trim your replies. Post your replies

Re: [ILUG-BOM] experiment in cron

2010-09-21 Thread Nitesh Mistry
On Tue, Sep 21, 2010 at 01:36:50AM +0530, Arun Khan wrote: But there is one more thing. Cron executes the 'fetchmail' command listed in my crontab list irrespective of whether I am logged in or not. But it fetchmail does not need access to any special devices like audio/video

Re: [ILUG-BOM] experiment in cron

2010-09-21 Thread Nitesh Mistry
On Tue, Sep 21, 2010 at 12:35:57AM +0530, Yohan Pereira wrote: But there is one more thing. Cron executes the 'fetchmail' command listed in my crontab list irrespective of whether I am logged in or not. But it executes the vlc command only if I am logged in. Is there any way I can make

Re: [ILUG-BOM] experiment in cron

2010-09-21 Thread Rony
On Tuesday 21 September 2010 10:49 PM, Nitesh Mistry wrote: When I am not logged in, cron still executes the command (as I can see from the syslog) but there is no output. And no message from cron for this instance. Whereas, when I am logged in, the song is played but I also get a message

Re: [ILUG-BOM] experiment in cron

2010-09-21 Thread Rony
On Tuesday 21 September 2010 10:53 PM, Nitesh Mistry wrote: stupid, easy, security issue, solution run it as root? Either that or setup auto log-in - which is the better of the two devils? How about running the script as root but inside the script, do a 'su -user'. Root will

Re: [ILUG-BOM] experiment in cron

2010-09-21 Thread Nitesh Mistry
On Tue, Sep 21, 2010 at 10:57:11PM +0530, Rony wrote: On Tuesday 21 September 2010 10:49 PM, Nitesh Mistry wrote: When I am not logged in, cron still executes the command (as I can see from the syslog) but there is no output. And no message from cron for this instance. Whereas, when I

Re: [ILUG-BOM] experiment in cron

2010-09-21 Thread steve
On 09/21/2010 10:49 PM, Nitesh Mistry wrote: On Tue, Sep 21, 2010 at 01:36:50AM +0530, Arun Khan wrote: [...snip...] When I am not logged in, cron still executes the command (as I can see from the syslog) but there is no output. And no message from cron for this instance. Whereas, when I am

Re: [ILUG-BOM] experiment in cron

2010-09-21 Thread Nadeem M. Khan
On Tue, Sep 21, 2010 at 10:08 PM, Nitesh Mistry mail...@mistrynitesh.net wrote: On Tue, Sep 21, 2010 at 10:57:11PM +0530, Rony wrote: On Tuesday 21 September 2010 10:49 PM, Nitesh Mistry wrote: When I am not logged in, cron still executes the command (as I can see from the syslog) but

[ILUG-BOM] experiment in cron

2010-09-20 Thread Nitesh Mistry
I am doing this little experiment in cron, but not able to make it work. I want cron to play a certain mp3 file at a certain time. So I add the usual time parameters and add the following to the command field: /usr/bin/ffplay path to my mp3 file But cron mails me an error which I have attached

Re: [ILUG-BOM] experiment in cron

2010-09-20 Thread Nitesh Mistry
On Mon, Sep 20, 2010 at 11:49:48PM +0530, Nitesh Mistry wrote: I am doing this little experiment in cron, but not able to make it work. I want cron to play a certain mp3 file at a certain time. So I add the usual time parameters and add the following to the command field: /usr/bin/ffplay

Re: [ILUG-BOM] experiment in cron

2010-09-20 Thread Yohan Pereira
On Tuesday 21 September 2010 12:16:03 am Nitesh Mistry wrote: On Mon, Sep 20, 2010 at 11:49:48PM +0530, Nitesh Mistry wrote: I am doing this little experiment in cron, but not able to make it work. I want cron to play a certain mp3 file at a certain time. So I add the usual time

Re: [ILUG-BOM] experiment in cron

2010-09-20 Thread Arun Khan
On Mon, Sep 20, 2010 at 11:49:48PM +0530, Nitesh Mistry wrote: I am doing this little experiment in cron, but not able to make it work. I want cron to play a certain mp3 file at a certain time. So I add the usual time parameters and add the following to the command field: /usr/bin/ffplay

Re: [ILUG-BOM] experiment in cron

2010-09-20 Thread Raj Mathur (राज माथुर)
On Monday 20 Sep 2010, Nitesh Mistry wrote: I want cron to play a certain mp3 file at a certain time. So I add the usual time parameters and add the following to the command field: /usr/bin/ffplay path to my mp3 file But cron mails me an error which I have attached as text file. ffplay