Skip to content

Instantly share code, notes, and snippets.

@tssge
Created August 12, 2016 14:28
Show Gist options
  • Select an option

  • Save tssge/fb6b22fb45a40d0676114e0e05b7325a to your computer and use it in GitHub Desktop.

Select an option

Save tssge/fb6b22fb45a40d0676114e0e05b7325a to your computer and use it in GitHub Desktop.
#!/bin/bash
IP=""
PORT="21"
USER=""
PASSWORD=""
FILEPATH=""
DEVNAME=""
wget "ftp://${USER}:${PASSWORD}@${IP}:${PORT}/${FILEPATH}" -O "${DEVNAME}-$(date '+%d%m%y-%H%M%S').xls"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment