Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2003
    Posts
    3

    Unanswered: transfer unix file automatically

    Hi, can anybody tell me how to automatically transfer a file from unix server to another machine in windows environment?

  2. #2
    Join Date
    Jan 2003
    Location
    Scotland
    Posts
    17
    I think you would have to create a Shell Script with FTP in it.

    Are you familiar with FTP?

    If you need a password and login for the windows, I suppose you'll have to watch who see's the script.

    S.

  3. #3
    Join Date
    Aug 2003
    Location
    West
    Posts
    101
    create a script file on the unix box.
    FTPfiles.sh
    -------------
    #!/bin/sh
    ftp -n ipaddressOFwindowsBOX << EOF
    user ftpusername ftpuserpwd
    put nameOFfile
    EOF

    create a cron job to run whenever you want to ftp the file
    ----------------
    # minute
    # hour
    # day of month
    # month of year
    # day of week
    # ---------------------
    # run this cron every 30 minute, of every hour, every day, every
    # month, daily
    0,30 * * * * /FTPfiles.sh

Posting Permissions

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