Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Net::SSH::Perl::Buffer issue

by krisahoch (Deacon)
on Sep 05, 2002 at 15:29 UTC ( [id://195411]=note: print w/replies, xml ) Need Help??


in reply to Net::SSH::Perl::Buffer issue

sunckell,

The following code ...

mkpath(['/export/home/backup/$hostname/$home_users'], 0, 0666);
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.

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://195411]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-29 07:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found