By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,807 Members | 1,995 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,807 IT Pros & Developers. It's quick & easy.

Copy file from Windows 2003 server to MAC OS X

P: 4
Hello All,

I have been tasked with deploying Quest VAS in our environment and instead of manually copy the necessary license file to all the 300 MACs in our company so they can authenticate to AD I want to create a GPO that will copy the file to MAC from a Windows server. I would appreciate it a lot if I can get a small perl script to make this happen. thanks.
Feb 3 '09 #1
Share this Question
Share on Google+
8 Replies

Expert 100+
P: 971
We provide people with assistance when their scripts / code is not working correctly. So for us to help you, you will have to write the code then if you have issues post your problem and sample code.

Feb 3 '09 #2

Expert 100+
P: 174
I Agree with eWish but since i do this too, ill try to help you.

Question One what files are we working with are they text files e.g .txt , .exe

Question two what method of transfer do you have a network share over the ftp server etc.
Feb 3 '09 #3

P: 4
Thanks for the reply guys, sorry here goes what I have wrote so far let me know if it looks like it should work:

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl
  3. use File::Copy;
  5. $GpoVasLic = "test.txt";
  6. $MacOsx = "/library/preferences/quest/licenses/test.txt";
  7. copy($GpoVasLic,$MacOsx);
Feb 4 '09 #4

Expert 2.5K+
P: 4,059
I don't think File::Copy works across servers.
Feb 4 '09 #5

P: 4
In response to IceCrack, I was thinking of mounting a drive on the MACs to the Windows share that the file was on then copying from there to the local destination on the MACs, would that work?
Feb 5 '09 #6

Expert 100+
P: 174
Well while your doing the mounting you might as well as copy the file.

question do all the macs have perl installed ?

also i will follow on with this tonight or after work, i don't know what time you go home from work but it seems you are on here when i just start work.

5:30 pm Australian Eastern Standard Time
Feb 5 '09 #7

P: 4
Hey IceCrack,

Yes, I am getting ready to leave as you get to work I'm in Los Angeles PST.

I will work on getting a script to mount a volume then copy file, but if you already have some quick lines for that I would appreciate them.

We have ~400 MACs 75% of them still running 10.4 which comes with Perl 5.8.6 and the MACs running 10.5 come with Perl 5.8.8. Thanks for the replies.
Feb 6 '09 #8

Expert 100+
P: 174
Any Updates in the script?
Feb 10 '09 #9

Post your reply

Sign in to post your reply or Sign up for a free account.