Skip to content

Instantly share code, notes, and snippets.

@zGrav
Created February 8, 2018 15:57
Show Gist options
  • Save zGrav/ed0a74219aefddccaeae061b082b44a0 to your computer and use it in GitHub Desktop.
Save zGrav/ed0a74219aefddccaeae061b082b44a0 to your computer and use it in GitHub Desktop.
curlup_log
#!/bin/bash
LOG_FILE=/tmp/curlup_log.log
find mydir -type f -exec curl -u xxx:psw --ftp-create-dirs -T {} ftp://xxx/{} \; 2>&1 | tee ${LOG_FILE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment