|Jul 1, 2009, 03:06 PM||#1|
Automator or Samba Help
I have a small computer lab, with a teachers station and 14 workstations, on each of the workstations. The teacher needs to manipulate a work folder on each of the students workstations, so I created several shared SMB folders on the student's desktops and I have the teacher go through the network and mount them via finder, I wanted to automate the process by creating an automator script that connects to each computer, however if a computer isn't on the "Connect to servers" plugin on the teacher stations hangs for about 30 seconds and pretty much kills finder for that amount of time. (I'm looking for a faster timeout for this solution, which I prefer doing) I also tried using mount_smbfs however I don't like how I have to create folders for each mac in the /Volumes/ folder, I like how having a script run when the teacher wants and the teacher can eject and see everything from their desktop. What I think is a viable solution is to have automator somehow resolve each Mac network name (samba?) and see if it's on/has an IP and then connect to a sever, is there a way to do, If IP then connect to server?
|Jul 2, 2009, 08:43 AM||#3|
Automator won't work for this - it simply isn't sophisticated enough for what you're trying to do. However, AppleScript is a much better solution - you can even drop down to the UNIX layer and execute shell commands within an AppleScript, if need be.
Yes, this is the right area to ask this sort of question, however I am not familiar with Samba programming, and can't be of much assistance.
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
|Jul 2, 2009, 11:09 AM||#4|
If you really need to go down the path you are on, I would have to say that using mount_smbfs is the correct way of doing it. You could have a script that pings the workstations and only if it is up will it create a directory to mount the samba share in. You could gui-fy the process using Duckbill when the script is done if needed.
"My favorite language is call STAR. It's extremely concise. It has exactly one verb '*', which does exactly what I want at the moment." --Larry Wall
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Using Automator to play audio file from within Automator made application?||nobodyhome||OS X 10.8 Mountain Lion||0||Jan 14, 2014 04:23 PM|
|Help with SAMBA Mount: Win 7 Client||jasonvp||Mac OS X Server, Xserve, and Networking||4||May 24, 2013 06:25 PM|
|Accessing a file via Samba||causeisunknown||OS X||6||Aug 27, 2012 10:42 AM|
|Samba Shares Headaches||KlytusLord||Mac Basics and Help||2||Jun 21, 2012 10:56 AM|
|Mac Samba Transfer Issue||Beaverman3001||OS X||1||Jun 20, 2012 11:19 AM|
All times are GMT -5. The time now is 01:51 PM.