If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > transfer unix file automatically

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-26-03, 05:08
ila97 ila97 is offline
Registered User
 
Join Date: Aug 2003
Posts: 3
transfer unix file automatically

Hi, can anybody tell me how to automatically transfer a file from unix server to another machine in windows environment?
Reply With Quote
  #2 (permalink)  
Old 08-26-03, 08:43
sypher sypher is offline
Registered User
 
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.
Reply With Quote
  #3 (permalink)  
Old 08-26-03, 14:42
Ida Hoe Ida Hoe is offline
Registered User
 
Join Date: Aug 2003
Location: West
Posts: 98
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On