Advertisement
metalx1000

Basic http file serving with servefile

Nov 30th, 2014
528
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. ##########uploading files##################
  2. servefile -u <directory> #default port is 8080
  3.  
  4. #Using WGET to upload all png files in a directory
  5. for i in *.png;do wget --post-file="$i" "http://localhost:8080/$i" -O- -q;done
  6.  
  7. #change port and usename and password
  8. servefile -u ./ -p 9876 -a bob:linux
  9.  
  10. #######Download Files/Directory List#######
  11. servefile -l
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement