Startup Script - Cisco Codec C20 Reference Manual

Telepresence system
Hide thumbs Also See for Codec C20:
Table of Contents

Advertisement

Cisco TelePresence System Codec C20
Contents
Introduction

Startup script

You can add a startup script on the codec to execute certain
commands from the API during boot up.
Codec C20 API Reference Guide TC6.0 February 2013.
D14869.05
About the API
xConfiguration
Adding a startup script
The startup script can be used to execute certain
commands from the API during boot up. To enable
this feature one must log in to the codec as root and
follow the steps below.
Login to the codec
1.
Connect to the codec through the network, using a
command line interface (SSH, Telnet or SCP) and
login as root
2.
Make a user directory using the following command:
"mkdir /user/scripts.d"
3.
Put an executable file (permission must be changed
to executable) in this directory.
Example of the text in such a file:
#!/usr/bin/env tsh
xCommand Audio LocalInput Update InputId: 1 MixerMode:Fixed
The startup script file
• The file must start with the following sequence:
#!/usr/bin/env tsh
• The file can contain any xCommand or xConfigura-
tion command
• The system executes the commands and configura-
tions in sequence.
• The file can have any name as long as it is placed
in this directory.
• For multiple commands you must use Unix end of
line (LF). Windows end of line does not work.
164
xCommand
xStatus
Copyright © 2010–2013 Cisco Systems, Inc. All rights reserved.
API Reference Guide
Appendices
Appendices

Advertisement

Table of Contents
loading

Table of Contents