?
Solved

WGET  / WPUT

Posted on 2006-05-11
10
Medium Priority
?
8,336 Views
Last Modified: 2013-12-23
Hi, I understand that WGET is used for downloading files from a remote.

I am trying to UPLOAD files from my local hard drive (laptop) to a remote ftp server and am trying to avoid the usual suspects (cuteftp, etc). Could I SSH to the server and use WGET commands to retrieve from my local drive the files I want to upload to the remote OR this can only be done using WPUT?

If so, here are my questions:

1) Does WPUT need to be installed in my local drive or in the remote server?
2) I downloaded wput-06.exe but when trying to open the shell it shuts down after 2 or 3 seconds.
3) Could anyone drop a sample command that will work using WPUT to upload local files in c:/ to remote ftp:// ?

Thanks!
0
Comment
Question by:robertito62
  • 5
  • 5
10 Comments
 
LVL 9

Expert Comment

by:kfullarton
ID: 16667756
Is there a reason you don't want to use the built-in windows ftp client?  I assume you're using windows because of the "c:" reference.  Open a command prompt, type ftp <servername>.  Login, type bin, and use get or put to send or receive files.  If you want to work with multiple files, type "prompt" then use mput or mget.  
0
 

Author Comment

by:robertito62
ID: 16668476
Thank you.

Yes, I can batch it from my drive (windows, correct). But I am not sure how secure using FTP DOS command is. This is why prefer the WPUT option (SSH). Also, isn't it faster? Also, when opening a shell and wputting I can see the progress of binary, large files. In the DOS window I see nothing till it closes and I know it finished.
0
 
LVL 9

Expert Comment

by:kfullarton
ID: 16668550
If you type hash after logging into the ftp server, you should see progress.  I'm not familiar with the security of WGET, but if you want encryption from Windows to UNIX, why not use pscp or pftp ?

http://www.putty.nl/download.html
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:robertito62
ID: 16668595
Oh... I am actually running a batch so I am not logging in manually but executing a bat file. I guess I can add the word "hash" right below the username/password in my connect file??

About pscp/pftp, are these variations of FTP DOS commands? Never heard of this.

I am using putty already, together with wget, but for downloads. How does putty relate to pscp/pftp?

Thank you for your time.
0
 
LVL 9

Accepted Solution

by:
kfullarton earned 1000 total points
ID: 16669137
>How does putty relate to pscp/pftp?

These are components of Putty.  Pscp is putty secure copy.  PSftp is putty secure ftp.  They are command line utilities.
0
 

Author Comment

by:robertito62
ID: 16669219
Thank you. I am learning a lot. I was wondering if we could go into deatils as why I can't make uploads, please.

First, does this all really work from a personal computer to a remote?? I am using the following command unssucessfully:

wput -B -N --input-file=f:/docs/directory1/folder1/uploads/files/ ftp://username:password@myhost.com/public_html/directory1/folder1/uploads/files/

I get the following message on puTTy:

f:/docs/directory1/folder1/uploads/files/ file not found

The path is correct because I copied it from the windows explorer address. I have also tried different versions including a path-to-file, for example, video01.mpg:

wput -B -N --input-file=f:/docs/directory1/folder1/uploads/files/video01.mpg ftp://username:password@myhost.com/public_html/directory1/folder1/uploads/files/

I set the command as -B since these are all binary.


What am I doing wrong, please?

0
 
LVL 9

Expert Comment

by:kfullarton
ID: 16669950
With regard to pscp, the command would go something like this:

c:\putty\pscp f:/docs/directory1/folder1/uploads/files/video01.mpg -l <username> <hostname>:/<directory>

That command says copy f:/docs/directory1/folder1/uploads/files/video01.mpg as a certain user to a server.  Hopefully that makes sense.
0
 

Author Comment

by:robertito62
ID: 16671129
AWESOME!

Thank you so much!! I uploaded my FIRST file ever using a secure line. Not that this means anything, but I have been trying for weeks... I thank you.

One more question, if I may. I had to play a little with your command line till it worked. But after the upload pscp stated:

scp: -l: no such file or directory

Finally, I now have a much longer command line and when I drop it into the command window it does not fit, so pscp doesn't do anything. How can I make it so that the window accepts my input no matter how long the sentence is?

Txs again
0
 
LVL 9

Expert Comment

by:kfullarton
ID: 16671914
The other option you could use instead of -l is to use <username>@<hostname>.  You could try placing the command in quotes...though I'm not sure that will work.
0
 

Author Comment

by:robertito62
ID: 16672048
Thank you!
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
LinkedIn blogging is great for networking, building up an audience, and expanding your influence as well. However, if you want to achieve these results, you need to work really hard to make your post worth liking and sharing. Here are 4 tips that ca…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question