summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-04-12 14:29:31 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-04-12 14:29:31 (GMT)
commite876d31127ee13008e89cf4cee8e6419550960a4 (patch)
tree2dd5a1310f56f7e36c202ba06daebccf784c2a3f
parentfab3db99c09a2b452fb9cc9da4d9201a393ec7ea (diff)
fixed gui error callback
-rwxr-xr-xrhimport2
-rw-r--r--rhimport.pm6
2 files changed, 4 insertions, 4 deletions
diff --git a/rhimport b/rhimport
index e25a1d3..ce4463c 100755
--- a/rhimport
+++ b/rhimport
@@ -199,7 +199,7 @@ my $gui_error_cb = sub {
print STDERR "no GUI definition found!\n";
exit 2;
}
- $text . "\n\nVorgang abbrechen?";
+ $text .= "\n\nVorgang abbrechen?";
my $parent_window = $guixml->get_widget('appwin');
my $dialog = Gtk2::MessageDialog->new ($parent_window, 'destroy-with-parent',
'error', 'yes-no', $text);
diff --git a/rhimport.pm b/rhimport.pm
index 2d2f190..9081b4c 100644
--- a/rhimport.pm
+++ b/rhimport.pm
@@ -33,7 +33,7 @@ my $ssh_host = "airplay";
my $ssh_user = "rhimport";
my $ssh_key_file = "id_dsa";
my $ssh_dir = "/programm/.rhimport";
-my $rdimport_wrapper = "/usr/local/bin/dropbox_newfile.pl1";
+my $rdimport_wrapper = "/usr/local/bin/dropbox_newfile.pl";
sub get_dropboxes
{
@@ -205,7 +205,7 @@ sub scp_put_file {
sub ssh_exec_command {
my ($command) = @_;
- my @cmd = ( 'ssh', '-q' , '-i', $ssh_key_file, "$ssh_user\@$ssh_host" , $command );
+ my @cmd = ( 'ssh' , '-i', $ssh_key_file, "$ssh_user\@$ssh_host" , $command );
my ($reader, $writer, $error ) = ( new IO::Handle, new IO::Handle, new IO::Handle );
$writer->autoflush(1);
local $SIG{CHLD} = 'DEFAULT';
@@ -246,7 +246,7 @@ sub import_file
print "Import Error\n";
delete_file($remote_file);
if($error_cb) {
- return $error_cb->($err);
+ return $error_cb->("Import Fehler: $error");
}
return 0;
}