![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| transfer file from unix to windows on same PC | monika | UNIX for Dummies Questions & Answers | 4 | 05-28-2008 06:35 AM |
| Unzip windows file on Unix | terala_s | UNIX for Advanced & Expert Users | 6 | 11-09-2007 09:55 AM |
| How to send a trigger file from Unix to Windows | robw95 | UNIX for Dummies Questions & Answers | 0 | 04-12-2006 05:07 PM |
| How do I send a file as an attachment (gzip file) on a Unix system | lacca | UNIX for Dummies Questions & Answers | 3 | 07-03-2002 01:04 PM |
| send file from UNIX to windows across network | umpi_97 | UNIX for Dummies Questions & Answers | 5 | 02-20-2002 03:49 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How send a file from UNIX to Windows with FTP
Hi
I'm new working in UNIX, So, I want to know How I can send a file from UNIX to Windows server with FTP. This is my script. ftp -i -n -v <<** open 199.99.99.99 user user1 password1 lcd C01_07_06 /* source/ cd //199.98.98.98/group1/reports /*destination*/ put file1.sh bye It's not working beacuse of cd command says destination is not a directory and the directory exists, the ping to 199.98.98.98 is working. Thanks for your answers. |
|
||||
|
Here is another way...this one is working fine since I am using it:
Code:
#! /usr/bin/ksh HOST=ftp_server_ip USER=your_login PASSWD=your_password exec 4>&1 ftp -nv >&4 2>&4 |& print -p open $HOST print -p user $USER $PASSWD print -p cd /home/your_login print -p binary print -p put test.txt print -p bye wait exit 0 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|