Computing.Net > Forums > Unix > Ftp from Unix Server to Local machi

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 from Unix Server to Local machi

Reply to Message Icon

Name: vs
Date: July 2, 2003 at 05:12:39 Pacific
OS: SunOS 5.6
CPU/Ram: ?
Comment:

hi,

Can some one help me to automate ftp from unix server to local machine? I have a shell script from which I want to ftp log file to pc.

Thanks




Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: July 2, 2003 at 09:17:32 Pacific
Reply:

#!/bin/sh
{ echo "open local_machine_name
user username password
hash
cd /pathname/
put log
close"
} | ftp -i -n -v 2>&1 | tee /tmp/ftplog


0

Response Number 2
Name: WilliamRobertson
Date: July 3, 2003 at 01:15:22 Pacific
Reply:

Note that there has to be an FTP server process running on the PC.


0

Response Number 3
Name: vs
Date: July 3, 2003 at 04:18:23 Pacific
Reply:

Here local machine can be any PC. I can login to Unix server to from any machine using telnet. So putting local_machine_name in this script will not be possible.

What is the way out?


0

Response Number 4
Name: David Perry
Date: July 3, 2003 at 06:22:44 Pacific
Reply:

Use either the IP address or the resolvable hostname of the machine you would like to ftp to.

You can also script an ftp client on the pc to pull the file from your unix host if you do not have a ftp server running on the pc.

http://www.experts-exchange.com/Operating_Systems/MSDOS/Q_20516960.html


0

Sponsored Link
Ads by Google
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 from Unix Server to Local machi

FTP from SCO UNIX server to a PC www.computing.net/answers/unix/ftp-from-sco-unix-server-to-a-pc/718.html

ftp ing Unix files to c:\ www.computing.net/answers/unix/ftp-ing-unix-files-to-c/3006.html

FTP from Sun Solaris to PC www.computing.net/answers/unix/ftp-from-sun-solaris-to-pc/1389.html