The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
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 08-23-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
If you have Samba, you don't need ftp. If you don't have Samba, how can you monitor the share? Are you trying to find out how to see the Windows share so you can monitor it, or are you trying to figure out how to periodically monitor something which you can already see? Anyway, smbclient or an SMB / CIFS mount is probably the crucial piece of infrastructure you need in order to get going.

Code:
while true; do
  cp /path/to/ugly/samba/share/name/"ugly windows file name here" /path/to/unix/file_name.xls && break
  sleep 300
done