Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Coolnat2004

macrumors 6502
Original poster
Jan 12, 2005
479
4
I am trying to mount an AFP share from a bash script. I have this so far:

Code:
mkdir '/Volumes/folder'
/sbin/mount_afp "afp://user:pass@host.com/folder" /Volumes/folder

However, the mount is not appearing on the desktop. Does anyone know how to make it appear on the desktop as it would when using "Go > Connect to server"?
 
Try this:

Code:
mkdir /Volumes/folder
mount_afp afp:/at/user:pass@host.com/folder /Volumes/folder
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.