The UNIX and Linux Forums  

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 -->
  #3 (permalink)  
Old 07-03-2009
zulfikarmd zulfikarmd is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 16
Quote:
Originally Posted by Smiling Dragon View Post
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.
Thanks mate. We have smbclient set up and I am able to move/copy files onto unix machine periodically. But what i want to do is to run this command once when file is available on the shared drive and then move the files to unix machine. is this possible? any hints?