beautypg.com

Http interface – archive download, Ncast presentation recorder reference manual – NCast PR720 User Manual

Page 86

background image

NCast Presentation Recorder Reference Manual

if [ $# -ne 2 ]; then
echo "This script stops a Presentation Recorder session using the telnet interface."
echo "Synopsis: stop.sh address password"
exit
fi

ADDRESS=$1
PASSWORD=$2

( echo "IdTelnet,002,$PASSWORD"
sleep 1
echo "PE"
sleep 1
echo "QT"
sleep 1 ) | telnet $ADDRESS 7474 >& /dev/null

9.3. HTTP I

NTERFACE

– A

RCHIVE

D

OWNLOAD

Special HTTP commands are available to enable automatic or script downloading of archive files:

http://w.x.y.z/backup/list.cgi

Downloads a list of READY archive files

http://w.x.y.z/backup/download/file.mp4

Downloads an archive file

http://w.x.y.z/backup/download/file.xml

Downloads an archive xml file

http://w.x.y.z/backup/remove.cgi?file=file.mp4

Removes an archived file

where

file.mp4

The time-stamped archive filename obtained from the downloaded list (also .wmv or .ogg)

file.xml

The time-stamped xml file associated with an archive file.

Note that archive operations are username/password protected and this information must be supplied to
utilize these special URLs. The required username is “backup”. The password is entered on the
Configuration → Passwords web page (“HTTP API” entry). Removed files are immediately deleted, and not
stored in the trash can.

A comprehensive sample retrieval script follows:

#! /bin/tcsh

# Usage: PR720files.tcsh host password delete
#
# host - the hostname or IP address of the PR720 unit
# password - backup password for the unit
# delete - optional keyword to delete archived files after download

set PR720ip = $1
set passwd = $2
set deleteoption = $3

set verbosity = --quiet
#set verbosity = --non-verbose
#set verbosity = --verbose

if ($PR720ip == "") then

echo "PR720files: PR720 Host address or IP address missing"
echo "Usage: PR720files.tcsh host password"
exit

endif

if ($passwd == "") then

echo "PR720files: PR720 password required"
echo "Usage: PR720files.tcsh host password"

NCast Corporation

Revision 1.1

Page 86

This manual is related to the following products: