GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  REX::COMMANDS::UPLOAD (3)

.ds Aq ’

NAME

Rex::Commands::Upload - Upload a local file to a remote server

CONTENTS

DESCRIPTION

With this module you can upload a local file via sftp to a remote host.

SYNOPSIS



 task "upload", "remoteserver", sub {
   upload "localfile", "/remote/file";
 };



EXPORTED FUNCTIONS

upload($local, CW$remote)

Perform an upload. If $remote is a directory the file will be uploaded to that directory.



 task "upload", "remoteserver", sub {
   upload "localfile", "/path";
 };



This function supports the following hooks:
before This gets executed before everything is done. The return value of this hook overwrite the original parameters of the function-call.
before_change This gets executed right before the new file is written.
after_change This gets executed right after the file was written.
after This gets executed right before the upload() function returns.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 REX::COMMANDS::UPLOAD (3) 2016-03-07

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.