-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathPIT.sh
executable file
·42 lines (38 loc) · 1.2 KB
/
PIT.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
#--------------------------------------------------------------------
# This script installs all necessary configuration
# files as required to upload images to the PhenoCam server
# (phenocam.nau.edu) on your NetCam SC/XL camera REMOTELY with
# minimum interaction with the camera
#
# Koen Hufkens (January 2014) [email protected]
#--------------------------------------------------------------------
echo ""
echo "#--------------------------------------------------------------------"
echo "#"
echo "# Uploading all settings to the NetCam camera!"
echo "# [Ignore all garbage on the command line]"
echo "#"
echo "#--------------------------------------------------------------------"
echo ""
#--------UPLOAD INSTALLATION SCRIPT / EXECUTE -----------------------
(
echo open $1 2> /dev/null
sleep 2
echo "$2"
sleep 1
echo "$3"
sleep 1
echo "cd /etc/config"
sleep 1
echo "wget http://phenocam.nau.edu/data/configs/phenocam_default_install.tar.gz"
sleep 1
echo "gunzip phenocam_default_install.tar.gz"
sleep 1
echo "tar -xvf phenocam_default_install.tar"
sleep 1
echo "rm phenocam_default_install.tar"
sleep 1
echo "sh phenocam_install.sh $4 $5 $6 $7 $8 $9 ${10}"
sleep 180 ) | telnet 2> /dev/null
exit 0