Computing.Net > Forums > Unix > FTP push from UNIX to NT

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

FTP push from UNIX to NT

Reply to Message Icon

Name: srini
Date: June 16, 2003 at 17:55:52 Pacific
OS: HP-UNIX
CPU/Ram: P3/1G
Comment:

Hi
Can some body share a code with me. I am trying to call a Kshell script file from one of my SQR programs. I am new to Shell scripting. My Shell script is going to run on UNIX box and I have to do FTP on Unix which should transfer files from another NT box and copy that to Unix.i.e. UNIX is trying to Pull files from NT box and ofcourse I have to push files to NT from Unix also.Can somebody help me with the actual code to do that.

Thanks in Advance...
Srini
srini@riteclik.com
408 390 2499




Sponsored Link
Ads by Google

Response Number 1
Name: Fukare
Date: June 17, 2003 at 07:36:34 Pacific
Reply:

Srini,
one way to do this will be to have a BAT file on your NT and the bat file would just call an ftp script which sits on your NT. example: the bat file would look like

ftp -i -s:c:\sample.sct

and in your sample.sct script you would put all the uid, password, directory where you want your files to go and the server name like

open servername
userid
password
cd /the/directory/where/you/want/your/files/togo/
binary
mput c:\whereyourfilesare\*.*

quit

Hope this helps,

F Yimtatu


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: FTP push from UNIX to NT

Moving file from Unix to NT www.computing.net/answers/unix/moving-file-from-unix-to-nt/1784.html

ftp from Unix to Windows NT www.computing.net/answers/unix/ftp-from-unix-to-windows-nt/4959.html

FTP, UNIX to NT adding extra line? www.computing.net/answers/unix/ftp-unix-to-nt-adding-extra-line/5418.html