Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Unix Scripting *(files moving)

Status
Not open for further replies.

script007

Programmer
Nov 29, 2006
4
US
Hi All,

I am a new born to unix scripting, so i thought it will be better to get directions from others. Anybody who can help me write a script that will moves files from a unix machine to other directories on different machines in the network.
I want to check the file's name, date and size before i move it; making sure it's a new file.

What will be nice; is to make this script runs automatically. The whole point is that i don't want to be moving these files manually every day.

Any websites or example that could help me will be very appreciate it.

Thank you.

For Your Eyes Only... Script007 :)
 
Have you considered rsync ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Where can i find rsync binary download for Windows?

Thanks.
 
rsync binary download for Windows
???
You posted in the UNIX Scripting forum about moving files from a unix machine ...

If the target machine is a windows box you may consider samba.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
yes; the target machines are windows and unix.
also i don't want to install any ftp or http server on the target machines. Basically i want to do is an automatic file transfer over IP address within the network, i know it can be done.
i have been searching for tools that will get the job done, i have gotten to the point where i think unix scripting is my best option. do you agree unix script can do that?if yes are there any helpful examples?

Thanks again.
 
i know samba is a powerful file transfer tool. but i don't know if it worth it to install and configure samba for that. i thought that a unix script is able to move file around the network.

what do you think?

Thank you ver much.
 
You must have FTP servers on your Windows machines. Otherwise you should look at using NFS or NAS protocol. Samba is one of the options.

How are you doing it manually today?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top