| Revision 586,
410 bytes
checked in by jdalbey, 6 years ago
(diff) |
|
realtime_VDS add bin folder and put scripts there.
|
| Rev | Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | # Download the latest 5min aggregate real time vds data |
|---|
| 3 | HOST='pems.dot.ca.gov' |
|---|
| 4 | USER='var_johndalbey' |
|---|
| 5 | PASSWD='carrotjuice!' |
|---|
| 6 | |
|---|
| 7 | ftp -n -v $HOST << EOT |
|---|
| 8 | ascii |
|---|
| 9 | user $USER $PASSWD |
|---|
| 10 | prompt |
|---|
| 11 | cd D12/Data/5min |
|---|
| 12 | get 5minagg_latest.txt |
|---|
| 13 | bye |
|---|
| 14 | EOT |
|---|
| 15 | |
|---|
| 16 | # Extract the first line (timestamp) and save it |
|---|
| 17 | head -1 5minagg_latest.txt > /web/webapps/realtime_VDS/dynamicdata/last_fetch_time.txt |
|---|
| 18 | |
|---|
| 19 | /home/jdalbey/createVDSgson.bash |
|---|
Note: See
TracBrowser
for help on using the repository browser.