On Tue, Sep 21, 2010 at 10:08 PM, Nitesh Mistry mailbox@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 there is no output. And no message from cron for this instance.
While logged in to your console, where manually typing the command works, type "env" to get your environment. Copy this to a blank file and append the mp3 command after it. chmod this file to have execute permissions, and add a shebang line.
This should work as long as you have the X server running. You would need the DISPLAY variable set. Something like export DISPLAY=localhost:0.0
Regards, NMK.