irah has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
The following Perl script has successfully executed from command line. But when I used in crontab, it is saying following error.
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified couldn't connect to display ":0" at /usr/lib/perl5/Tk/MainWindow.pm line 55.Script:
#!/usr/bin/perl use strict; use warnings; use Tk; my $mw=MainWindow->new(); $mw->withdraw(); $mw->messageBox(-icon => 'info', -message =>"It's time to leave.", -ti +tle => "Alert", -type => 'ok');
I am using Linux. Please help me to work on it.
Thanks in advance.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Cron in X
by Anonymous Monk on Sep 21, 2009 at 06:11 UTC | |
Re: Cron in X
by Bloodnok (Vicar) on Sep 21, 2009 at 11:16 UTC | |
Re: Cron in X
by lakshmananindia (Chaplain) on Sep 21, 2009 at 07:26 UTC | |
by MidLifeXis (Monsignor) on Sep 21, 2009 at 14:46 UTC | |
by irah (Pilgrim) on Sep 21, 2009 at 08:10 UTC | |
by McD (Chaplain) on Sep 21, 2009 at 15:28 UTC |