Applications Set up the IX20 to automatically run your applications
IX20 User Guide
843
4. Browse to the location of the script on your local machine. Select the file and click Open to
upload the file.
The uploaded file is uploaded to the /etc/config/scriptsdirectory.
Command line
1. Select the device in Remote Manager and click Actions> Open Console, or log into the IX20
local command line as a user with full Admin access rights.
Depending on your device configuration, you may be presented with an Access selection
menu. Type admin to accessthe Admin CLI.
2. At the command line, use the scp command to upload the Python application script to the IX20
device:
> scp host hostname-or-ip user username remote remote-path local local-
path to local
where:
n
hostname-or-ip isthe hostname or IPaddress of the remote host.
n
username is the name of the user on the remote host.
n
remote-path isthe path and filename of the file on the remote host that will be copied
to the IX20 device.
n
local-path isthe location on the IX20 device where the copied file will be placed.
For example:
To upload a script from a remote host with an IPaddress of 192.168.4.1 to the
/etc/config/scripts directory on the IX20 device, issue the following command:
> scp host 192.168.4.1 user admin remote /home/admin/bin/test.py local
/etc/config/scripts/ to local
admin@192.168.4.1's password: adminpwd
test.py 100% 36MB 11.1MB/s 00:03
>
3. Type exit to exit the Admin CLI.
Depending on your device configuration, you may be presented with an Access selection
menu. Type quit to disconnect from the device.
Note You can also create scripts by using the vi command when logged in with shell access.
Task two: Configure the application to run automatically
Note This feature doesnot provide syntax or error checking. Certain commandscan render the device
inoperable. Use with care.
Web