473,395 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Copy file from Windows 2003 server to MAC OS X

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
8 2775
eWish
971 Expert 512MB
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.

--Kevin
Feb 3 '09 #2
Icecrack
174 Expert 100+
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
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
  2.  
  3. use File::Copy;
  4.  
  5. $GpoVasLic = "test.txt";
  6. $MacOsx = "/library/preferences/quest/licenses/test.txt";
  7. copy($GpoVasLic,$MacOsx);
Feb 4 '09 #4
KevinADC
4,059 Expert 2GB
I don't think File::Copy works across servers.
Feb 4 '09 #5
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
Icecrack
174 Expert 100+
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
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
Icecrack
174 Expert 100+
Any Updates in the script?
Feb 10 '09 #9

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

Similar topics

2
by: KULJEET | last post by:
control file not created at time of installtion of oracle database now how we can create it see alert file Dump file e:\ORacle\admin\new\bdump\newALRT.LOG Tue Sep 09 10:45:53 2003 ORACLE...
11
by: Danny J. Lesandrini | last post by:
Has anyone else noticed this? I searched group archives and found nothing, but it's really starting to irritate me big time. Here's the steps to reproduce the problem: Copy something to the...
1
by: Adrian | last post by:
Hi all Initial postion: IIS 6.0, Windows 2003 Server, .NET Framework 1.1 We have a development Server A, a stating Server B and a production Server C. After development of the .NET ASP...
0
by: Grey | last post by:
I have a ASP.NET web application which is required to copy file from windows server to Novell Netware server. I have used impersonation to connect to Netware server. The application works fine when...
2
by: camp | last post by:
I use VS.Net 2003 on Win XP Pro SP2. I created an ASP.Net app on local IIS. Now I just wanted to "Copy Project" to remote server, but I get this error: "An error occured while copying the...
6
by: RitaG | last post by:
Hello. I have a VB.Net program that copies a file from one server to another server. This program has been working without any problems for about a year. A couple of weeks ago the "server from"...
0
by: Lorenzo Soncini | last post by:
Buongiorno, I have a problem with an ASP.NET 2.0 and Wisual studio 2005 on a Windows 2003 enviroment. I have an ASPNET Web Apllication who create some directory and copy some file using an ASPX...
4
by: rgw1 | last post by:
Hello, Can anyone help with this? I am using C# with IIS 6.0 on Windows 2003 Server. I am trying to copy a file over the network. It is attempting to copy a file on a NAS (external hard...
9
by: fniles | last post by:
I would like to copy a table(s) from SQL Server 2005 to a CVS file and vice versa. I was thinking to use the BCP command line utility, but I have a few questions: 1. The machine where I am...
9
by: dpatel75 | last post by:
I am trying to copy a database from a SQL 2000 SP3 Windows 2000 server to a 2005 SP2 Windows 2003 server. I am trying to use detach and attach method (have tried both within Management Studio and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.