# apt-get install davfs2
# mkdir /mnt/yandex.disk
# mount -t davfs https://webdav.yandex.ru /mnt/yandex.disk/
# df -h /mnt/yandex.disk/
Filesystem Size Used Avail Use% Mounted on
https://webdav.yandex.ru
10G 7.7M 10G 1% /mnt/yandex.disk
#!/usr/bin/expect
spawn mount.davfs https://webdav.yandex.ru /clouds/yandex.disk/
expect "Username:"
send "USERNAME@yandex.ru\r"
expect "Password:"
send "PASS\r"
expect eof
Source: https://habr.com/ru/post/142067/
All Articles