~npisanti/npisantidotcomssg

ref: e9337371f62c1b63086e93fdaa41e75273e2abdb npisantidotcomssg/upload_data.sh -rwxr-xr-x 466 bytes
e9337371Nicola Pisanti finished porting to fish 2 months ago
                                                                                
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
#!/usr/bin/fish

echo 'the ftp transfer used in this script is not encrypted, are you behind a trusted connection?'
	
while true
    set yn (read -P [y/n]: ) 

	switch "$yn"
    case Y y yes
    	break
    case N n no
    	 echo "goodbye!" 
    	 exit
    case '*'
    	echo "Please answer yes or no."
    end
end

set ftpuser (read -P user: )

echo ""

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

exit