The script is called simple.sh and has the following in it:
Code: Select all
#!/bin/bash
echo "Attempting wput..."
wput -B -u --dont-continue --reupload --tries=5 --binary --verbose --reupload ftp://username:password@myservername /home/pi/Desktop/webcam/webcam.jpg
Code: Select all
pi@raspberrypi ~/Desktop/webcam $ ./simple.sh
Attempting wput...
--22:20:42-- `/home/pi/Desktop/webcam/webcam.jpg'
=> ftp://xxxxxx:xxxxx@yyy.yyy.yyy.yy:yy //home/pi/Desktop/webcam/webcam.jpg
Connecting to yyy.yyy.yyy.yy:yy... connected# --------- Welcome to Pure-FTPd [privsep] [TLS] ----------
# You are user number 6 of 500 allowed.
# Local time is now 15:20. Server port: 21.
# This is a private system - No anonymous login
!
Logging in as xxxxxxxx ... Logged in!
==> CWD home/pi/Desktop/webcam
Remote file size is smaller than local size. Restarting at 0.
==> TYPE I ... done.
==> PASV ... done.
==> STOR webcam.jpg ... done.
Length: 81,354
96% [==============================================================================================> ] 78,848 33.00K/s ETA 00s
# File successfully transferred
22:20:45 (webcam.jpg) - `33.01K/s' [81354]
# Goodbye. You uploaded 80 and downloaded 0 kbytes.
FINISHED --22:20:45--
Transfered 81,354 bytes in 1 file at 23.56K/sAny help is appreciated.