Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ftp not connected problem 4

Status
Not open for further replies.

FlashGorden

IS-IT--Management
Nov 8, 2001
22
0
0
EU
Hi,
I want to ftp files from the server to my desktom but I keep getting "connection timed out" message followed by "not connected". My script looks like this:
#!/usr/bin/ksh
#
cd $Source
ftp -n -v $MyPCIP << ENDFTP
put $File $File_To
quit
ENDFTP

Any help would be appreciated
 
Hi
Perhaps the ftp -n isn't allowed and you need to pass
a user and password ?
man pages for ftp :-
-n Prevents an automatic login on the initial connection. Otherwise, the ftp command searches for a $HOME/.netrc entry that describes the login and initialization process for the remote host.
Cheers Dickie Bird
db@dickiebird.freeserve.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top