Y
Y.G.
Another question from me then. I am writing my Gtk-program and I want to
run it via a cronjob. I am already testing if I am logged in and so. Now
I want the cron to display the window on my own display. For the moment
I tried doing this using:
#!/usr/local/bin/perl -w
$ENV{DISPLAY} = ":0.0";
$ENV{XAUTHORITY} = "/myhome/.Xauthority";
use IO::Handle;
use Gtk2 '-init' ; # load the Gtk-Perl module
use Glib; # timeout...
use strict; # a good idea for all non-trivial Perl scripts
(And here follows my program)
When I run it from command line it works. When cron runs it I get an
e-mail which sais:
Gtk-WARNING **: cannot open display: at
perlpath/lib/site_perl/5.8.5/i686-linux/Gtk2.pm line 62.
Should I add a line which tells Gtk2 which displ;ay I am using?
run it via a cronjob. I am already testing if I am logged in and so. Now
I want the cron to display the window on my own display. For the moment
I tried doing this using:
#!/usr/local/bin/perl -w
$ENV{DISPLAY} = ":0.0";
$ENV{XAUTHORITY} = "/myhome/.Xauthority";
use IO::Handle;
use Gtk2 '-init' ; # load the Gtk-Perl module
use Glib; # timeout...
use strict; # a good idea for all non-trivial Perl scripts
(And here follows my program)
When I run it from command line it works. When cron runs it I get an
e-mail which sais:
Gtk-WARNING **: cannot open display: at
perlpath/lib/site_perl/5.8.5/i686-linux/Gtk2.pm line 62.
Should I add a line which tells Gtk2 which displ;ay I am using?