in reply to Net::SSH::Perl::Buffer issue
sunckell,
The following code ...
does not interpolate. You are creating a path called /export/home/backup/$hostname/$home_users. Change the single quotes ' to double quotes ". That may be the problem.mkpath(['/export/home/backup/$hostname/$home_users'], 0, 0666);
Another problem may arise after you fix this. That is the fact that you are using $homeusers. You have declared @home_users. In this case I think that you mean to use $home_user
my @home_users< = split " ", $home_list; foreach my $home_user< (@home_users) { #Do you mean $home_user here? because $home_users is not declared. mkpath(['/export/home/backup/$hostname/$home_users'], 0, 0666);
HTH - Kristofer Hoch
Updated: Grammar needed to be fixed for easier reading.
|
|---|