The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shell Script to ftp from windows server shilpa.rajput Shell Programming and Scripting 8 11-06-2007 08:52 PM
shell script to transfer files from Unix to Windows knag Shell Programming and Scripting 15 12-05-2006 01:46 PM
Renaming putty windows with a shell script orno Shell Programming and Scripting 2 10-23-2006 07:00 AM
Shell to FTP file from Windows to unix sandeep.kamble Shell Programming and Scripting 3 09-19-2006 07:34 AM
How to execute a shell script from Windows kyawlin UNIX for Dummies Questions & Answers 4 12-19-2003 05:54 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-11-2007
Registered User
 

Join Date: Nov 2006
Location: Toronto, ON, Canada
Posts: 7
FTP Unix Box to Windows Shell Script

Hello All,

Could someone help me out with this? I want to incorporate this into an existing script so the output of a SAS job can be ftp'd from our UNIX box to a directory on a drive in Windows environment. Can this be done with no extra third party software? We currently use Putty for copy and pastes from Windows to Unix but if I can find an automated solution to fit the rest of my job I would be eternally grateful. Thanks.

Jose
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-12-2007
srikanthus2002's Avatar
Registered User
 

Join Date: Sep 2006
Location: Can u guess...!
Posts: 160
Is FTP (IIS) server installed on your windows machine ( windows 2000,2003 server)?

If yes? you can use it....

ftp -n 10.228.249.130 <<! # Ip address of the server
user test 123 # username (test) and password (123)
bin #for binary tranfer
put file_name #put the file file_name
bye # end the connection
!
Reply With Quote
  #3 (permalink)  
Old 07-11-2007
Registered User
 

Join Date: Jul 2007
Posts: 2
Samba might help

I know you said "without adding software" but this one is "free" - at least that is what i saw when I googled it to check.

Samba is a free software that will define your unix directory to the windows environment and so you don't have to ftp anything. It is set up on the unix box. Then you can "see" the unix directory from windows. One precaution- moving something to or from the unix area may have different results that what you did with FTP depending on if you were using ASCII or binary transfer mode and the type of SAS file you are working with.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0