start working on ftp and webdav scripts

This commit is contained in:
Pi
2019-02-26 09:38:33 -05:00
parent c273d2e369
commit 9dd17b23ad
5 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#! /usr/bin/expect
spawn /usr/bin/cadaver http://192.168.60.2/webdav
expect "Username:"
send "jack\n"
expect "Password:"
send "jackw4sh3re\n"
expect "dav:/webdav/>"
send "lcd /home/pi/zip\n"
expect "dav:/webdav/>"
send "ls\n"
send "cd Training\n"
expect "dav:/webdav/Training/>"
send "ls\n"
expect "dav:/webdav/Training/>"
send "mget *\n"
expect "dav:/webdav/Training/>"
send "exit\n"