Skip to content

Commit

Permalink
wip: debug sftp
Browse files Browse the repository at this point in the history
  • Loading branch information
lijaan committed May 15, 2024
1 parent 9fc8ba9 commit 04dfb9b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,14 @@ If errors are encountered around `.so` files not found or incorrect architecture

```
pip uninstall psutil && pip install --no-binary :all: psutil
```
```

## Loading entity data

Run the following from the root of this repository:
```
cd data_processing/scripts/
direnv allow
```

Make sure you have `direnv` and `sshpass` installed (these can be installed with a package manager such as homebrew).
7 changes: 7 additions & 0 deletions data_processing/scripts/download_opencorporates.com.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

sshpass -p "${SFTP_PASSWORD}" sftp -q -P "${SFTP_PORT}" "${SFTP_USERNAME}@${SFTP_ENDPOINT}" <<EOF
lcd .
ls -l .
bye
EOF | grep -v "^sftp>" | awk '$1 ~ /^-/ {print $NF}'

0 comments on commit 04dfb9b

Please sign in to comment.