~npisanti/npisantidotcomssg

ref: 88cdde99b2328f6ba743af66967b9d063f55c83f npisantidotcomssg/upload_data.sh -rwxr-xr-x 427 bytes
88cdde99Nicola Pisanti finished fish script 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

while true; do
    read -p "the ftp transfer used in this script is not encrypted, are you behind a trusted connection? [y/n] " yn
    case $yn in
        [Yy]* ) break;;
        [Nn]* ) echo "goodbye!"; exit;;
        * ) echo "Please answer yes or no.";;
    esac
done

read -p "Username: " ftpuser

ncftpput -R -z -v -u "$ftpuser" ftp.npisanti.com public_html ~/htdocs/npisantidotcomssg/html_output/data/

exit