A
A
and7ey2014-01-08 23:35:42
Yandex.Disk
and7ey, 2014-01-08 23:35:42

How to connect Yandex.disk to Mac via command line?

I'm trying like this:

mkdir /Volumes/temp
mount_webdav davs://[email protected]:443 /Volumes/temp

I don't get any errors, but /Volumes/temp is also empty.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
iStyx, 2014-01-11
@and7ey

Create a script mount_yadiskwith the following content:

#!/usr/bin/expect -f
#
# Usage: mount_yadisk <node> <username> <password>

if {$argc!=3} then {
    send_tty "Usage: mount_yadisk <node> <username> <password>\n"
    exit 1
}
set timeout 15
set node [lindex $argv 0]
set username [lindex $argv 1]
set password [lindex $argv 2]
log_user 0
if {!([file exists "$node"])} then {
    exec mkdir "$node"
}
spawn mount_webdav -i -s -v "Yandex.Disk" "https://webdav.yandex.ru:443" "$node"
expect {
    "Username:" { send "$username\n"; exp_continue }
    "Password:" { send "$password\n" }
}

Let's not forget chmod +x mount_yadisk.
Let's run it like this:mount_yadisk /Volumes/YandexDisk username password

A
and7ey, 2014-01-09
@and7ey

mount_webdav -i https://webdav.yandex.ru:443 /Volumes/temp

works. But you need to manually enter the username and password.
Options:
mount_webdav https://myusername:[email protected]:443 /Volumes/temp
mount_webdav -s https://myusername:[email protected]:443 /Volumes/temp

does not work.

I
inte1ligence, 2015-02-02
@inte1ligence

The connection to Yandex Disk has been checked and is working.
set pause to (3)
delay pause
tell application "Finder"
mount volume "Https://webdav.yandex.ru/" as user name ¬
"username" with password "password"
end tell

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question