summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/net_monitor
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-08-21 17:00:42 +0000
committerdamien <damien@mandriva.com>2001-08-21 17:00:42 +0000
commit203fe77dac0199ad90ca280cf9a28443206c5355 (patch)
treee6c59a5656c5451874eb783d84f10ba00a05a853 /perl-install/standalone/net_monitor
parent99a39fc2b2c18f646e5774525f396d23228fcf1c (diff)
downloaddrakx-backup-do-not-use-203fe77dac0199ad90ca280cf9a28443206c5355.tar
drakx-backup-do-not-use-203fe77dac0199ad90ca280cf9a28443206c5355.tar.gz
drakx-backup-do-not-use-203fe77dac0199ad90ca280cf9a28443206c5355.tar.bz2
drakx-backup-do-not-use-203fe77dac0199ad90ca280cf9a28443206c5355.tar.xz
drakx-backup-do-not-use-203fe77dac0199ad90ca280cf9a28443206c5355.zip
log updatede
Diffstat (limited to 'perl-install/standalone/net_monitor')
-rwxr-xr-xperl-install/standalone/net_monitor6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor
index 9e1397975..3fa961e32 100755
--- a/perl-install/standalone/net_monitor
+++ b/perl-install/standalone/net_monitor
@@ -121,7 +121,11 @@ gtkadd($window1,
1, gtksignal_connect(my $button_connect = new Gtk::Button(), clicked => \&connection),
0, new Gtk::VSeparator,
0, gtkpack(new Gtk::VBox(0,5),
- gtksignal_connect(new Gtk::Button(_("Logs")), clicked => sub { system("/usr/sbin/logdrake --file /var/log/messages &") }),
+ gtksignal_connect(new Gtk::Button(_("Logs")), clicked => sub {
+ -e "/usr/sbin/logdrake"
+ ? system('/usr/sbin/logdrake --file /var/log/messages &')
+ : system('/usr/X11R6/bin/xvt -e "tail -f /var/log/messages " &')
+ }),
gtksignal_connect(my $button_close = new Gtk::Button(_("Close")), clicked => sub { Gtk->exit(0) }),
)
)