The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-02-2009
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 922
Sure, there's a bunch of ways you can do this:
  • Run periodic ftp listings to see when new files show up, then ftp it out.
  • Use smbclient (comes with most samba implementations) to do much the same
  • If your OS supports it, samba mount the shared filesystem and then treat it like a local one
You'll want to think about move vs copy as well, also consider doing filesize comparisons after copying the file to make sure you have it complete before deleting it from the share.