Ncast presentation recorder reference manual – NCast PR720 User Manual

Page 88

Advertising
background image

NCast Presentation Recorder Reference Manual

endif

end

rm -f PR720-filelist

The Python programming language is a widely available, cross-platform programming language available for
Windows, Macs, Linux and other platforms. The following is a sample Python program for downloading
archive files:

#! /usr/bin/python
"""
ncfiles.py -- A Python program to download NCast archive files

This program allows downloading of archive files from one or more Presentation Record-
ers.
It requires installation and use of the Python programming language. The most
recent versions of the language may be installed by visiting "www.python.org" and
downloading the correct binaries for Windows, Linux, Macs or other platforms.

All archive files are downloaded into the directory where the program was started.

Sample usage:

ncfiles.py Presentation Recorder.ncast.com Download all files from a single
host
ncfiles.py -r Presentation Recorder.ncast.com Download all files and then remove
them
ncfiles.py 192.168.0.5 192.168.0.6 Download from multiple hosts
ncfiles.py -p adam Presentation Recorder.ncast.com Download using password "adam"

Complete specification:

ncfiles.py -d -f hostfile -h -p password -r -v --debug --file=hostfile --help
--pswd=password --remove --version host host1 host2 ...

where

-d, --debug Turn debug statements on
-f, --file=hostfile Use a list of hosts from a file (see below)
-h, --help Print usage information
-p, --pswd=password Use "password"
-r, --remove Remove archive file from the host after download
-v, --version Report program version

host ... One or more hosts to download from

The list of hosts is a text file (e.g. created with Notepad) that contains a
list of hosts to download from and optionally password information:

# This is a sample host file

# Optional password line for supplying a password

pswd=adam

# Hosts to download from

192.168.0.5
Presentation Recorder.ncast.com
my.other.boxes.com

NCast Corporation

Revision 1.1

Page 88

Advertising
This manual is related to the following products: