作者:蓝蓝__的夜夜 | 来源:互联网 | 2023-09-09 18:33
本文由编程笔记#小编为大家整理,主要介绍了shhttp://hints.macworld.com/article.php?story=20130722033452283相关的知识,希望对你有一定的参
本文由编程笔记#小编为大家整理,主要介绍了sh http://hints.macworld.com/article.php?story=20130722033452283相关的知识,希望对你有一定的参考价值。
get_pw () {
security 2>&1 >/dev/null find-generic-password -ga $USER
|ruby -e 'print $1 if STDIN.gets =~ /^password: "(.*)"$/'
}
mkdir ~/Data
mount -t afp afp://$USER:$(get_pw)@10.0.77.3/Data ~/Data