NCast Telepresenter Reference Manual
endif
echo "m4files: returned result is: `cat $mp4:r.msg`"
rm -f $mp4:r.msg
endif
end
rm -f m4-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 Telepresenters.
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 telepresenter.ncast.com Download all files from a single host
ncfiles.py -r telepresenter.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 telepresenter.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
telepresenter.ncast.com
NCast Corporation
Revision 2.2
Page 91