If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > ftp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-02-04, 12:47
deltacorvi deltacorvi is offline
Registered User
 
Join Date: Sep 2004
Posts: 9
ftp

I need to use a UNIX ftp script to transfer data from an FTP server to a UNIX box. I have access to one specific subfolder (folder2 in the command line below) on the FTP server. However, this code errored out -

ftp -n \xxx.xxx.xxx.xx\folder1\folder2

"ftp: xxx.xxx.xxx.xxfolder1folder2 : Name or service not known"

When I tried to connect directly to the ftp server, it errored out like this -
"Login Failed for User user1"

Is there any way to get around this problem?

Thanks
Reply With Quote
  #2 (permalink)  
Old 09-04-04, 16:25
fla5do fla5do is offline
Registered User
 
Join Date: Oct 2003
Location: Germany
Posts: 138
Hi deltacorvi,

what happens if you do all steps on command shell ?

does it works or not ?

try :
ftp hostname or IP( xxx.xxx.xxx.xxx)
give user and pass
you will get the ftp prompt like -ftp >-

enter -?- to get help from ftp session

quit or bye will leave the ftp-session

If all that works please post again for more help in scripting.
__________________
Greetings from germany
Peter F.

Last edited by fla5do; 09-04-04 at 16:31.
Reply With Quote
  #3 (permalink)  
Old 09-07-04, 10:00
deltacorvi deltacorvi is offline
Registered User
 
Join Date: Sep 2004
Posts: 9
Hi Peter,

I tried command shell, however, got similar results (login failed for user user1).

Danke schoen,
Reply With Quote
  #4 (permalink)  
Old 09-07-04, 15:56
fla5do fla5do is offline
Registered User
 
Join Date: Oct 2003
Location: Germany
Posts: 138
Quote:
Originally Posted by deltacorvi
Hi Peter,

I tried command shell, however, got similar results (login failed for user user1).

Danke schoen,
Können wir jetzt auf Deutsch weiter machen ?
Can we talk now in german language?

Hi,
when I use my ftp with a wrong password I get the same message, but I get
the ftp> prompt. Contact your administrator for the right user and pass.

If you use Unix, normaly there is a ftp-server installed. Try ftp to your local IP-adress with your user and pass on the local machine.

otherwise I have no more help for you.

Auf ein wiederhören.
Gruß Peter
__________________
Greetings from germany
Peter F.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On