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.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |