#!/usr/bin/expect spawn mount.davfs https://webdav.yandex.ru /clouds/yandex.disk/ expect "Username:" send "@yandex.ru\r" expect "Password:" send "\r" expect eof