Python Network Programming Cookbook by Pradeeban Kathiravelu

Python Network Programming Cookbook by Pradeeban Kathiravelu

Author:Pradeeban Kathiravelu
Language: eng
Format: epub
Tags: COM043000 - COMPUTERS / Networking / General, COM051000 - COMPUTERS / Programming / General, COM051360 - COMPUTERS / Programming Languages / Python
Publisher: Packt
Published: 2017-08-09T07:26:25+00:00


How it works...

In this recipe, we used a few of Fabric's built-in functions to transfer files between local and remote machines. The local() function does an action on the local machine, whereas the remote actions are carried out by the run() function.

This is useful to check the available disk space on the target machine before uploading a file and vice versa.

This is achieved by using the Unix command, df. The source and destination file paths can be specified via the Command Prompt or can be hard coded in the source file in case of an unattended automatic execution.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.