From: Eric Bollengier Date: Mon, 15 Dec 2008 13:52:44 +0000 (+0000) Subject: ebl Update Bconsole.pm to use raw_pty() instead of using IO::Pty noecho X-Git-Tag: Release-3.0.0~477 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e60fbc17810528b9c6964668ba960e49f5138439;p=bacula%2Fbacula ebl Update Bconsole.pm to use raw_pty() instead of using IO::Pty noecho git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8166 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/lib/Bconsole.pm b/gui/bweb/lib/Bconsole.pm index cd8456c0e5..377fd96740 100644 --- a/gui/bweb/lib/Bconsole.pm +++ b/gui/bweb/lib/Bconsole.pm @@ -153,7 +153,7 @@ sub connect return $self->error("bconsole string not found"); } $self->{bconsole} = new Expect; - $self->{bconsole}->raw_pty(0); + $self->{bconsole}->raw_pty(1); $self->{bconsole}->debug($self->{debug}); $self->{bconsole}->log_stdout($self->{debug} || $self->{log_stdout}); @@ -171,8 +171,6 @@ sub connect $SIG{__DIE__} = $sav; } - $self->{bconsole}->slave->stty(qw(-echo)); - unless ($ret) { return $self->error($self->{bconsole}->error()); } @@ -206,7 +204,6 @@ sub send_cmd } $self->{bconsole}->clear_accum(); $self->send("$cmd\n"); -# $self->expect_it($cmd); $self->expect_it('-re','^[*]'); return $self->before(); } @@ -220,10 +217,7 @@ sub send_cmd_yes $self->send("$cmd\n"); $self->expect_it('-re', '[?].+:'); - $self->{bconsole}->clear_accum(); - $self->send("yes\n"); -# $self->expect_it("yes"); - $self->expect_it('-re','^[*]'); + $self->send_cmd("yes"); return $self->before(); } @@ -328,31 +322,31 @@ sub get_fileset sub list_job { my ($self) = @_; - return sort split(/\r\n/, $self->send_cmd(".jobs")); + return sort split(/\r?\n/, $self->send_cmd(".jobs")); } sub list_fileset { my ($self) = @_; - return sort split(/\r\n/, $self->send_cmd(".filesets")); + return sort split(/\r?\n/, $self->send_cmd(".filesets")); } sub list_storage { my ($self) = @_; - return sort split(/\r\n/, $self->send_cmd(".storage")); + return sort split(/\r?\n/, $self->send_cmd(".storage")); } sub list_client { my ($self) = @_; - return sort split(/\r\n/, $self->send_cmd(".clients")); + return sort split(/\r?\n/, $self->send_cmd(".clients")); } sub list_pool { my ($self) = @_; - return sort split(/\r\n/, $self->send_cmd(".pools")); + return sort split(/\r?\n/, $self->send_cmd(".pools")); } use Time::ParseDate qw/parsedate/; diff --git a/gui/bweb/technotes-3.0 b/gui/bweb/technotes-3.0 new file mode 100644 index 0000000000..29334f528e --- /dev/null +++ b/gui/bweb/technotes-3.0 @@ -0,0 +1,174 @@ +15Dec08 +ebl Update Bconsole.pm to use raw_pty() instead of using IO::Pty noecho +10Dec08 +ebl Fix mysql bug in log output +07Nov08 +ebl Fix statistics page +ebl Add new "Cancel missing job" feature to be able + to mark missing job as failed in history table. +ebl Fix a couple of unchecked arguments. + +06Nov08 +ebl Fix a Bconsole.pm with Expect bug on debian lenny +ebl Fix in storage command + +04Nov08 +ebl Display all groups in display_stat page + +21Oct08 +ebl Fix lot of small bugs + +20Oct08 +ebl Rename job_old to JobHistory + +07Oct08 +ebl Add base64_decode_lstat() function to Mysql + +22Sep08 +ebl Add an option to bgraph that shows each levels as different source + +21Sep08 +ebl + bfileview: + - Add error message for pruned of uncomputed jobs + - Bugfix for looking / + Bweb.pm + - Add support for age=1w2d40m + - Add new configuration variable to modify default age + general.tpl + - Add hyperlink to failed job count + TODO: add C.png (with something like zzZZzzz) + +25Aug08 +ebl Fix #1132 about typo in directory creation in install_bweb + +02Jul08 +ebl Add documentation link on missing job view + +31Jun08 +ebl Fix log display in job zoom view + +22Jun08 +ebl Fix bug in missing job view + +20Jun08 +ebl Update check_bacula.pl documentation + +16Jun08 +ebl Take Recycle volumes from the import/export tool. + +03Jun08 +ebl Add a nagios plugin for bacula script/check_bacula.pl + +02Jun08 +ebl Modify missing job view to handle all kind of job + +28Apr08 +ebl Change We from 45 to 66 hours (from friday 18h to monday 12h) + +10Apr08 +ebl Fix group statistics to use client_group param + +03Apr08 +ebl Tweak progress bar and add Backuped files count to job status +ebl Remove progress bar from restore + +02Apr08 +ebl Add group statistics page + +10Mar08 +ebl Use lineal regression to guess backup progress (postgresql) + +09Mar08 +ebl Add progress bar to backup screen (files and bytes estimation) + +07Mar08 +ebl Fix btime.pl + +15Feb08 +ebl Add bcheck.pl script that check various things in + you bacula setup. + - Try to connect to each client + - Reports you big backup size change + - Reports you useless (or unconfigured) Job + +14Feb08 +ebl Cleanup some SQL + +13Feb08 +ebl Can modify client list group for a specific client +ebl Disable use of Enabled flag in volume mgnt +ebl Add comment field to client_group + +09Jan08 +ebl Adapt btime for bacula 2.2.7 + +05Jan08 +ebl Add basic Device managment (mount, umount, release, status) + +02Jan08 +ebl Fix a couple of bug in btime module +ebl Keep level param between overview pages + +31Dec07 +ebl Add new r_view_group role to view group content + +27Dec07 +ebl Fix a bug in user edition. +ebl Add Jobs -> Missing Job feature. Now, you can + check if jobs are missing or have to be re-run. +ebl Add begin/end param to Bweb::Sched object +ebl Fix a couple of small bug in GBalloon module when + we don't find any valid job + +23Dec07 +ebl Each user can have a different template dir (lang). +ebl WARNING: now, bweb/tpl contains main tpl files + for english version, you have to use bweb/lang/en/tpl + +21Dec07 +ebl Use main tpl for editing, and use scripts to + generate other lang. + +19Dec07 +ebl Add a new balloon graphic mode which display + time, bytes and number of files on the same graph + +13Dec07 +ebl Try to extract when= from get_form() more smoothly + +06Dec07 +ebl Add Bweb::Schedule Object to parse show schedule output. + Now, we can make ical events for example... + +05Dec07 +ebl Add truncate to second function +ebl Add btime module + +28Nov07 +ebl Fix the time slice between overview and overview_zoom + +26Nov07 +ebl Fix overview to works with mysql +ebl Add date support to bresto +ebl Make bresto works with mysql (no DISTINCT ON (c1,c2)) +ebl Add the list of media that will be needed for resto + +25Nov07 +ebl Use a automatic rediction when launching a new job +ebl Add new overview view. + +24Nov07 +ebl Add ERR= to error log filter +ebl Set where_field when selecting a directory in the tree +ebl Add a wiki option to integrate a link to jobs documentation + directly in bweb. +ebl Add a tpl field to bweb_user. (To be able to have a tpl for each + user). + +23Nov07 +ebl Add brestore_xxx tables to sql scripts +ebl Add a batch=1 option to bresto.pl to fill bresto tables +ebl Adapt Bconsole.pm to run a restore job +ebl Make bresto.html/js working (you can restore files now) +ebl Improve run job from scheduled view and missing view