Re: connect to server question

2007-12-04 Thread Martin v. Löwis
> Here's the code I presently use in a Bash Shell script: > > /bin/mkdir -p /Volumes/A_Share > /sbin/mount_afp "afp://username:[EMAIL PROTECTED]/A_Share" > "/Volumes/A_Share" > > Can something similar be done with Python? You can always use os.system to do what the shell does, ie. os.sy

connect to server question

2007-12-03 Thread jay
Is there a way to connect to servers on OS X using Python? Here's the code I presently use in a Bash Shell script: /bin/mkdir -p /Volumes/A_Share /sbin/mount_afp "afp://username:[EMAIL PROTECTED]/A_Share" "/ Volumes/A_Share" Can something similar be done with Python? Thanks! Jay --