Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script problem



Title: Script problem

I have a login script that automatically mounts a volume and copies down a couple of files to the local HD. When the script runs it is mounting the afp volume fine but absolutely refuses to copy the files to the machine. Here is the piece of the script.

mkdir -p /Library/Scripts/Custom
mkdir /Volumes/Software\ Update\ Scripts       
mount_afp afp://xs.intranet.com/Software\ Update\ Scripts /Volumes/Software\ Update\ Scripts
cp /Volumes/Software\ Update\ Scripts/softwareupdate.sh /Library/Scripts/Custom/
chmod u+x /Library/Scripts/Custom/softwareupdate.sh    
cp /Volumes/Software\ Update\ Scripts/com.intranet.softwareupdate.plist /Library/LaunchDaemons/
umount -f /Volumes/Software\ Update\ Scripts


I don’t see any reason why this copy doesn’t work during logon. I took the same code and pasted into a shell session and it worked fine. Just refuses to work as a login script. Anybody seen this?


Thank you for your time


Dedrick

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Client-management mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/client-management/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.