start working on ftp and webdav scripts
This commit is contained in:
18
roles/webclient/files/cadaver-webdav.sh
Executable file
18
roles/webclient/files/cadaver-webdav.sh
Executable 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"
|
||||
Reference in New Issue
Block a user