I’m having a very specific issue.
I’ve written a login script for our OS X users that mounts a read only share on a server. Inside this share is a text file based on our computer name and a text file based on the user name. The script starts with the user name and mounts all of the shares in the text file. It then sets up printers based on the information in the computer name text file. By doing this no mater what machine one of our users logs into the servers they need will be setup and they will be connected to the nearest printer. Our IT Dept can modify the text files so that if a new server is added or a new printer is in place all of the users will get these settings automatically. This portion works great.
Our next brilliant idea was to create a smaller script that will run on login on each machine. This script needs to somehow “call” the larger script. The idea is that I can make changes to the larger script and it will instantly take effect for everyone.
I can get the smaller script to mount a different read only share, open the larger script, but then it tries to unmount the share the larger script is stored on (not the same one the text files are on). When the larger script opens it mounts all of the shares but then can’t find the user text file even though just running the script from the server it is able to complete it.
I can’t find a way to tell the smaller script to just include the larger one, to wait for the larger one to complete or any other solution. I realize I’m probably just overlooking something but I’ve been trying for a few days now.
Any suggestions?