Skip to Content.
Sympa Menu

baslinux - Re: [BL] BL3.01 ftpput

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: Sindi Keesan <keesan AT iamjlamb.com>
  • To: Ian Scott <mriscott AT yahoo.co.uk>
  • Cc: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] BL3.01 ftpput
  • Date: Tue, 16 Mar 2004 18:56:30 -0500 (EST)

On Tue, 16 Mar 2004, Ian Scott wrote:
> > Is there some way to log into an ftp site with links or wget? Neither
> > asks me for username or password.
>
> I suspect both would work with standard url passwording:
>
> wget ftp://username:password@server//path/to/url

This worked from my shell account with the wget program for Redhat
(probably 6.x) but it does NOT work with wget in BL3 - no such file
message. I typed it out exactly the same way and tried to fetch the same
file from the same place (my other shell account).

What is different about the BL3 wget? It is a busybox version so might be
lacking some capability.


Ftpput works but you need to be in the directory where the file is
located, I think. There is no way to specify the path, just filename. I
put in ~keesan as the remote directory instead of assuming it as default.

ftpput -u username -p password remote-host remote-directory local-file

I just made a script for this:
#!/bin/sh
ftpput -u keesan -p (mypassword) ftp.grex.org ~keesan $1

I typed cd /root putgrex hotlist.html and it uploaded it via ftp.


I will try links next for getting ftp files: Back shortly.
It is great being able to do two things online at once with linux!

links-0.90 ftp://keesan:mypassword AT grex.org/ftpnet.txt
//ftpnet.txt
/~keesan/ftpnet.txt
File not found

I think I also tried //~keesan/ftpnet.txt which did not work.

I have not found any way to download files via FTP using programs that
come with BL3. I could try adding BL1's FTP program which needs ncurses,
but I have lynx already installed.

I have lynx 2.6 from SW3.2 (needed libncurses from BL1).
Lynx 2.8.1 from SW4.0 was not working properly - might need a newer
libncurses from SW4.0.

lynx ftp://keesan:mypassword AT grex.org/~keesan/ftpnet.txt
Makes ftp connection, displays ftpnet.txt which is in my
home directory. I can then Print it to a local file, also text.

/~keesan/KEESAN.JPG
I am asked whether to download or cancel and I can then save to
local disk.

These two test files are in my home directory, not www (my web directory,
which I can access without username and password, using links or lynx).


> links http://username:password@server/path/to/file
If I do this it will only fetch files from my www directory, I think.
I got the message 'not found on this server' when I tried.


> N.B. this is a common hacker trick.
>
> You get an email telling you to go to
> http://www.barclays.co.uk/account/details AT evilhacker.com/password.html and
> enter your secret bank passwords
> - but that is a page under evilhacker.com, not barclays.co.uk, because
> everything before the @ in a url is considered to be logon details.
Cute

Thanks, Ian, for setting me on the right track.

> Ian
>
>


To sum up, in order to download files via FTP using BL3, I had to add a
program (lynx) since I cannot get busybox wget to do what regular wget
does, and I cannot make links do the job either.

I could also add BL1 ftp program, or compile Kermit 2.08 or later without
floating point capabilities for Bl3 (on BL1 with later kernel), for which
Frank at Kermit sent me instructions.

These all require libncurses, which Steven omitted to save space. 248K.
Is there a diet version of libncurses with which FTP would work?





Archive powered by MHonArc 2.6.24.

Top of Page