Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Posts
    4

    Smile 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

  2. #2
    Just Joined! tyho's Avatar
    Join Date
    Oct 2010
    Location
    Mwanza, Tanzania
    Posts
    76
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...