>
> Hi a question about ftp syntax
>
> I’m connecting to a vsftpd server
>
> This works in a browser →
> ftp://john:password@ip.of.server
>
> But this is rejected from the cli → ftp
> john:password@ip.of.server
>
> Can you tell me what syntax works from the cli?
>
> Thanks
> swerdna
>
>
man ftp
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
You and I posted more or less simultaneously, so I imagine you have the answer by now.
But thanks for the sentiment natural_pilot. I had of course read the man pages and had the same trouble digging the answer out as you. I studied it for a long time before asking for help.
I find that a lot of man pages are written by ppl who do really know their subject but don’t really know how to communicate. Some posters to this forum are a bit that way too.
hmmmm…seems in the fine Linux tradition there is more than one way
to skin this cat, also…
good on you swerdna…
i had tried that “ftp ftp://…” string with my web host and got
rejected…i scrolled back in bash history and now see that the
rejection was due to a simple typo…otherwise i think would have
found your solution, and saved an hour+ of my life…
Hint:
Try ncftp as FTP client.
The ncftp package comes with programs as ncftpget, ncftpput and ncftpbatch,
making usage of FTP in scripts a lot easier.
Hey thanks guys. That’s a great start for me in the task of writing a cron job to call a script to open an ftp link to a backup machine and copy the contents of web servers across to the backup machine.
Add --ftp-user=user --ftp-password=password if needed.
Good luck.
natural_pilot wrote:
> hmmmm…seems in the fine Linux tradition there is more than one way
> to skin this cat, also…
>
> good on you swerdna…
>
> i had tried that “ftp ftp://…” string with my web host and got
> rejected…i scrolled back in bash history and now see that the
> rejection was due to a simple typo…otherwise i think would have
> found your solution, and saved an hour+ of my life…
>
> oh, i forgot to mention that my ‘wisdon’ on .netrc came from google
> and http://www.linux.com/archive/feature/119510
> thank you linux.com!
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> natural_pilot;2002041 Wrote:
>> PV wrote:
>> > man ftp
>>
>> what an unhelpful alt.usenet way to post!
>>
>> swerdna, i used to know but haven’t used it in so long i’ve forgotten
>> (dang those GUI thing allow us to forget how to cli!)
>>
>> ha! i’ve spent over an hour with man ftp and i’ve not figured it out
>> either, yet…
>>
>> am looking forward to relearning…
>>
>> and, will be watching closely to help PV with his/her next help
>> request.
<snip>
> But thanks for the sentiment natural_pilot. I had of course read the
> man pages and had the same trouble digging the answer out as you. I
> studied it for a long time before asking for help.
>
> I find that a lot of man pages are written by ppl who do really know
> their subject but don’t really know how to communicate. Some posters to
> this forum are a bit that way too.
>
<snip>
In retrospect I can see that my overly terse reply was not helpful and I
should have explained more fully. At the time it had seemed to me that the
manual entry was clear that <username>:<password> required the ftp:// prefix.
I extend an apology to Swerdna and the entire Opensuse community.
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
PS: for any lurking old pharts with lots of newsnet experience–read a
little in these fora as most (like 90%) folks here use it
(http://forums.opensuse.org) and you will see why the full top-post
convention of the old daze is not always useful, here… (and, a
threaded newsreader is the cat’s meow)
PS2: welcome to eye-candy lane…it is a whole nuther world.