!$? or die "$thing->{What} $?";
}
+sub target_somefile_getleaf ($$$) {
+ my ($lleaf_ref, $rdest, $ho) = @_;
+ if (!defined $$lleaf_ref) {
+ $$lleaf_ref= $rdest;
+ $$lleaf_ref =~ s,.*/,,;
+ }
+ $$lleaf_ref= hostnamepath($ho)."--$$lleaf_ref";
+}
+
sub sshuho ($$) { my ($user,$ho)= @_; return "$user\@$ho->{Ip}"; }
sub sshopts () {
target_run_pkgmanager_install($ho,\@packages,1);
}
-sub target_somefile_getleaf ($$$) {
- my ($lleaf_ref, $rdest, $ho) = @_;
- if (!defined $$lleaf_ref) {
- $$lleaf_ref= $rdest;
- $$lleaf_ref =~ s,.*/,,;
- }
- $$lleaf_ref= hostnamepath($ho)."--$$lleaf_ref";
-}
-
sub tpfcs_core {
my ($tputfilef,$ho,$timeout,$filedata, $rdest,$lleaf) = @_;
target_somefile_getleaf(\$lleaf,$rdest,$ho);