Running user-defined scripts, File transmission – SENA Parani-MSP1000 User Manual

Page 68

Advertising
background image

68

Telnet/SSH console:

1) telnet Parani-MSP1000_ip_address or

2) ssh root@ Parani-MSP1000_ip_address

10.4. Running user-defined scripts

Shell script /usr2/rc.user is automatically called when the Parani-MSP1000 is booting. Users can

modify the rc.user file to run user-defined script or binaries

#!/bin/bash
#
# rc.user : Sample script file for running user programs at boot time
#
#PATH=/bin:/usr/bin:/sbin:/usr/sbin
# Add shell command to execute from here

echo ‘This is the welcome message defined by users’exit 0

10.5. File transmission

The users can use an ftp client for file transmission and use /usr2 directory for data read/write

[email protected]:~# cd /usr2
[email protected]:/usr2# ftp 192.168.2.3
Connected to 192.168.2.3.
220 lxtoo.senalab.co.kr FTP server (Version wu-2.6.1-16) ready.
Name (192.168.2.3:root): sena
331 Password required for sena.
Password:
230 User sena logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> get test.tgz
local: test.tgz remote: test.tgz
200 PORT command successful.
150 Opening BINARY mode data connection for test.tgz (350 bytes).
226 Transfer complete.
350 bytes received in 0.04 secs (9.6 kB/s)
ftp> bye

In addition to a regular FTP client, the user can copy files securely as encrypted using scp client

program. If the user wants to copy a file from the Parani-MSP1000(192.168.0.120) to user’s PC, type

a command on the user’s PC as shown below:

[root@localhost work]# scp [email protected]:/usr2/rc.user /work
The authenticity of host '192.168.0.120 (192.168.0.120)' can't be established.
RSA key fingerprint is c1:70:ab:52:48:ab:e5:dc:47:9c:94:ed:99:6f:94:4f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.120' (RSA) to the list of known hosts.
[email protected]'s password:
rc.user

100% |*****************************|

173

00:00

[root@localhost work]#

Advertising