Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Perl SFTP do_mkdir not able to create directory

by salva (Abbot)
on Apr 09, 2013 at 07:55 UTC ( #1027665=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl SFTP do_mkdir not able to create directory
in thread Perl SFTP do_mkdir not able to create directory

In that case, you can use Net::OpenSSH::Parallel:
use Net::OpenSSH::Parallel; my $pssh = Net::OpenSSH::Parallel->new; $pssh->add_host($_) for @hosts; sub sftp_task { my ($host, $ssh) = @_; my $sftp = $ssh->sftp; $sftp->mkdir("ftp2SAT5") or die "unable to create directory: " . $sftp->error; } $pssh->all(parsub => &sftp_task); $pssh->run;

Replies are listed 'Best First'.
Re^4: Perl SFTP do_mkdir not able to create directory
by skylinedreamer (Novice) on Apr 15, 2013 at 02:29 UTC
    Fixed the issue by using fork as suggested by salva.

    Thank you PerlMonks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027665]
help
Chatterbox?
[Discipulus]: thanks marto i'll read it after an urgent phonecall
[choroba]: I configured signature font to 2pt size, so I don't care
[choroba]: Moreover, I don't find the Big Lebowski quote offensive
Lady_Aleena wishes she could format her signature a bit without getting metaphorical hives.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2017-06-23 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (539 votes). Check out past polls.