The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
.
google unix.com



Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
unix commands... ez45 UNIX for Dummies Questions & Answers 5 07-26-2008 01:12 PM
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 05:24 AM
run commands before login woofie UNIX for Dummies Questions & Answers 1 08-17-2005 09:09 PM
Unix Commands Moinul Haque HP-UX 1 08-02-2004 10:05 AM
Maingrame to UNIX sending UNIX commands skammer UNIX for Dummies Questions & Answers 2 06-27-2002 12:19 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-05-2008
teposelo teposelo is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 2
Can't login to Unix using ftp commands

Hi.

I have this issue with an ftp command that I can run successfully using command prompt in Windows but when using a file to run the script unix will always return log in error messages.

Here is what I'm doing:
In command prompt I'm running this:
> ftp -s:c:\load_test_file.scr

And my file..."load_test_file.scr" is as simple as:
open 111.1.1.111
user
myuser
mypass
cd /path/path_folder
put c:\filename.csv
quit

Here is the whole output in command prompt:

C:\>ftp -s:c:\load_test_file.scr
ftp> open 111.1.1.111
Connected to 111.1.1.111.
220 <servername> FTP server ready.
User (111.1.1.111none)):
331 Password required for user.

530 Login incorrect.
Login failed.
ftp> myuser
Invalid command.
ftp> cd /path/path_folder
530 Please login with USER and PASS.
ftp> put c:\filename.csv
530 Please login with USER and PASS.
530 Please login with USER and PASS.
ftp> quit
221 Goodbye.

IS there anything that I may need to fix in my code?

Thanks in advance!

T.

Last edited by teposelo; 08-05-2008 at 06:43 PM.. Reason: to make it better to understand
  #2 (permalink)  
Old 08-05-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
The correct syntax is

Code:
user username password
  #3 (permalink)  
Old 08-05-2008
teposelo teposelo is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 2
Solved

Annihilannic.

The code worked fine but I also had to add -n (Suppresses auto-login upon initial connection.).
so the call now looks like this
ftp -n -s:c:\load_test_file.scr

Thanks,

T
  #4 (permalink)  
Old 09-15-2008
ron_yap2009 ron_yap2009 is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 7
how to ftp to solaris server thru my notebook via LAN cable

Hi two senior,

I m a newbie for solaris, I encounter a problem when I try to ftp to unix server., step as follow:

window command line:
>
>
>
>ftp <IP address>
connected to <IP address>
220 s4u-60a-sin06 FTP server ready.
User (<IP address>none)):
Password:
Login failed.
>
>
>



But there is not password for that server, whi it will prompt the user and password?Any idea?Hope senior can tell the solution and reason...

Thanks!!!!
  #5 (permalink)  
Old 09-15-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
If you want to use anonymous FTP, type anonymous or ftp as the username. You can type anything for the password, the convention is to give your email address.
Closed Thread

Bookmarks

Tags
unix commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0