Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.
#! /bin/bash USER=whoami mkdir ~/Desktop/HomeDrive mkdir ~/Desktop/Shared WDRIVE=`dscl /Active\\ Directory/THOMASNETDOM/All\\ Domains/ -read /users/$USER | grep SMBHome: | cut -c 10- | tr '\\' '/'` SINFO=//Server.domain.com/Shared echo $WDRIVE mount_smbfs $WDRIVE ~/Desktop/HomeDrive mount_smbfs $SINFO ~/Desktop/Shared
Join the community of 500,000 technology professionals and ask your questions.