FTP command-line utility usage


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers FTP command-line utility usage
# 1  
Old 09-22-2011
FTP command-line utility usage

Hi,

Using command-line utility "ftp or sftp", I want to transfer files across Windows and UNIX.

Can you please tell me from where I need to connect to ftp and how do I specify the hostname, credentials and how do I get and put files between DOS and UNIX?

Please provide me as much information as possible, thank you.
# 2  
Old 09-22-2011
Transfer files from which, to which?

DOS doesn't have networking, windows CMD isn't DOS.
# 3  
Old 09-22-2011
You may just want to use a FTP client. FileZilla is free and available on most platforms.
# 4  
Old 09-22-2011
if you find ftp on all unix, you cant say the same for DOS/Windows...Is there a ftp client on the DOS side?
# 5  
Old 09-22-2011
download and install an FTP/SFTP client. For SFTP you will need OpenSSH installed.
not sure about windows 7, hopefully they have integrated a secure file transfer protocol, what ever that may be.
-x
This User Gave Thanks to doctorfoo1 For This Post:
# 6  
Old 09-22-2011
I use Filezilla all the time to transfer files from Unix to Windows (runs on Win7 no problem). Simple and easy to use.
Another way...not using FTP would be to mount a windows share in Unix. You don't need Samba for this, so again...nice and simple.
# 7  
Old 09-24-2011
Hi All,

Thanks a lot for your comments.

I'm trying to connect to UNIX Server from DOS using ftp command-line utility as given below,

C:\ftp
ftp>
ftp> open hostname.com 22
Connected to hostname.com.
SSH-2.0-OpenSSH_4.3
Connection closed by remote host.

I get this error saying "Connection closed by remote host.", I'm able to connect using the GUI utility "WinSCP", this works well.

What could be there problem here? Thank you.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issue in running a command line utility in CRON

Hi Everyone! I am facing an issue in running a command line utility from the CRON. This utility displays IPC statistics on UNIX message queues: The "queue name" and the "count" of messages in the queue. When running this utility from prompt, it will provide an output on the screen, like the... (4 Replies)
Discussion started by: vai_sh
4 Replies

2. Shell Programming and Scripting

usage of if command in ftp

Hi , I am writing script to copy some files and folders . I am trying to use if command to check if folder exists and then copy in that folder but if command is not working: if then lcd $home_directory/sequences cd sequences mput * else echo "Not a Directory" fi ... (5 Replies)
Discussion started by: ankush_mehra
5 Replies

3. Shell Programming and Scripting

DB Access Command Line Utility

To read/write to a DB from Java or Perl, you usually have to install/reference several drivers and write a whole bunch of boilerplate DB access code. I'm curious if someone has written a command line utility for Unix/Linux for simple database access for the major providers, something like: ... (3 Replies)
Discussion started by: furashgf
3 Replies

4. Linux

The dot command-line utility?

Hi, What else is the dot used beside relative filepaths in bash? Is it a shell utility as well? No man entry for dot (.)... (3 Replies)
Discussion started by: varelg
3 Replies

5. UNIX for Dummies Questions & Answers

Uploading a Directory via FTP in the Command Line

Hello, Is there a way to upload a directory via ftp in the command line in a single line? I'd be looking for something like this: ftp -username me -password 12345 /Users/me/mywebsitefolder /publichtml/ But I can't figure out the proper syntax. Thank you for any help. -Grey (1 Reply)
Discussion started by: wellington_grey
1 Replies

6. Programming

top command line utility

I'm writing a monitoring application. I'd like to periodically get the information provided by the 'top' command line utility from within my code and write the output of 'top' to a file. Wondering if anyone has already done something like this. Doing system("top > someFile"); does not create... (6 Replies)
Discussion started by: antoniomorandi
6 Replies

7. Programming

command line socket read utility

HI I have a messaging s/w daemon(TIBCO rvrd) provided by vendor which will accept connections from various clients and routes messages to the destinations. In order to route it internally uses two ports(one tcp adn one udp). I want to know on which port(tcp/udp) it is transmitting... (3 Replies)
Discussion started by: axes
3 Replies

8. UNIX for Advanced & Expert Users

Command line FTP Client

I'm looking for a FTP client that is similar to NCFTP in that I can run a full ftp command in one line without needing to access the client first then typing the ftp commands. Very simple request but I can't find any other tool like that, I have downloaded Kermit thinking I can use it to tranfer... (3 Replies)
Discussion started by: tamkag
3 Replies

9. UNIX for Dummies Questions & Answers

ftp command line client

Hi! Does anyone of you know another good ftp command line Client like Midnight Commander? (not /usr/bin/ftp) Thanks. (5 Replies)
Discussion started by: donald1111
5 Replies
Login or Register to Ask a Question