Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: To Log FTP Transfers.

by karlgoethebier (Parson)
on May 08, 2014 at 18:36 UTC ( #1085493=note: print w/replies, xml ) Need Help??

in reply to To Log FTP Transfers.

Here is the more verbose version (from the manual of Net::SFTP:

For GET use:

$sftp->get($remote [, $local [, \&callback ] ]) sub callback { my($sftp, $data, $offset, $size) = @_; print "Read $offset / $size bytes\r"; }

For PUT use:

$sftp->put($local, $remote [, \&callback ]) sub callback { my($sftp, $data, $offset, $size) = @_; print "Wrote $offset / $size bytes\r"; }

See also Callback (computer programming)

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1085493]
[Corion]: Meh. IE crashes when displaying that SVG as saved from Firefox ...
LanX blame Canada!
[Discipulus]: to crash is not the default behaviour of IE? ;=)
[Discipulus]: so every library (js) to sdelect and modify the id parameters can be good.
[Discipulus]: I never understood something: I can on the fly modify the XML structure of the SVG using for example XML::Twig ?

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2017-03-23 09:36 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (285 votes). Check out past polls.