Mounting AFP share from command line

Discussion in 'macOS' started by Coolnat2004, Oct 6, 2008.

  1. Coolnat2004 macrumors 6502

    Coolnat2004

    Joined:
    Jan 12, 2005
    #1
    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"?
     
  2. mitson macrumors newbie

    Joined:
    Oct 30, 2008
    #2
    Try this:

    Code:
    mkdir /Volumes/folder
    mount_afp afp:/at/user:pass@host.com/folder /Volumes/folder
     

Share This Page