Results 1 to 2 of 2
Hi every one
In my windows machine I have some txt files. I want run a script or command daily to get those file to my linux box using cron ...
- 11-27-2010 #1Just Joined!
- Join Date
- Nov 2010
- Posts
- 4
how to get files from windows to linux using cron job
Hi every one
In my windows machine I have some txt files. I want run a script or command daily to get those file to my linux box using cron job.
Windows (192.168.1.5)
d:\records\test.txt
to
Linux (192.168.1.
/data
I want to run that script in my linux box every day at 10.30 AM using cron job to get those files from windows to linux.
I really appreciate your support
Damu
- 11-27-2010 #2
You can share the folder in windows and access it through samba in linux.
Or you could use CIFS, as this post explains:
HOWTO: Mounting SMB/CIFS Shares
This might look difficult at first, but it explains everything you could need mounting a Windows share in Linux.
Once you mounted it, you can run a simple bash-script to copy the files using cp or rsync or any other copy tool.
Another, completely different idea would be setting up cygwin on your windows to run a rsync daemon, then using rsync to copy the files. I guess it depends on your "personal style" what you prefer


Reply With Quote