public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] {OT} wput with weird characters
@ 2007-08-31 18:50 Grant
  2007-08-31 19:22 ` Michal 'vorner' Vaner
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Grant @ 2007-08-31 18:50 UTC (permalink / raw
  To: Gentoo mailing list

I need to periodically upload a file to an ftp server, but the
password they've issued me has a '!' and a '&' character in it.  I
tried escaping those characters like this:

wput -A file.txt ftp://username:abc\!123\&@ftp.example.com/file.txt

but then it tells me the password isn't correct.  How can I use a
password like that with wput?

- Grant
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] {OT} wput with weird characters
  2007-08-31 18:50 [gentoo-user] {OT} wput with weird characters Grant
@ 2007-08-31 19:22 ` Michal 'vorner' Vaner
  2007-08-31 21:20   ` Grant
  2007-08-31 19:45 ` Willie Wong
  2007-08-31 20:38 ` Alex Schuster
  2 siblings, 1 reply; 7+ messages in thread
From: Michal 'vorner' Vaner @ 2007-08-31 19:22 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 567 bytes --]

Hello

On Fri, Aug 31, 2007 at 11:50:43AM -0700, Grant wrote:
> I need to periodically upload a file to an ftp server, but the
> password they've issued me has a '!' and a '&' character in it.  I
> tried escaping those characters like this:
> 
> wput -A file.txt ftp://username:abc\!123\&@ftp.example.com/file.txt

Did you try using ' around the whole argument? Like

wput -A ... 'ftp://....txt'?

-- 
This message has optimized support for formating.
Please choose green font and black background so it looks like it should.

Michal 'vorner' Vaner

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] {OT} wput with weird characters
  2007-08-31 18:50 [gentoo-user] {OT} wput with weird characters Grant
  2007-08-31 19:22 ` Michal 'vorner' Vaner
@ 2007-08-31 19:45 ` Willie Wong
  2007-08-31 20:38 ` Alex Schuster
  2 siblings, 0 replies; 7+ messages in thread
From: Willie Wong @ 2007-08-31 19:45 UTC (permalink / raw
  To: gentoo-user

On Fri, Aug 31, 2007 at 11:50:43AM -0700, Grant wrote:
> I need to periodically upload a file to an ftp server, but the
> password they've issued me has a '!' and a '&' character in it.  I
> tried escaping those characters like this:
> 
> wput -A file.txt ftp://username:abc\!123\&@ftp.example.com/file.txt
> 
> but then it tells me the password isn't correct.  How can I use a
> password like that with wput?
> 

Maybe you can try putting the username and password combination in a .wputrc 
file? 

W
-- 
Willie W. Wong                                      wwong@math.princeton.edu
408 Fine Hall,  Department of Mathematics,  Princeton University,  Princeton
A mathematician's reputation rests on the number of bad proofs he has given.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] {OT} wput with weird characters
  2007-08-31 18:50 [gentoo-user] {OT} wput with weird characters Grant
  2007-08-31 19:22 ` Michal 'vorner' Vaner
  2007-08-31 19:45 ` Willie Wong
@ 2007-08-31 20:38 ` Alex Schuster
  2 siblings, 0 replies; 7+ messages in thread
From: Alex Schuster @ 2007-08-31 20:38 UTC (permalink / raw
  To: gentoo-user

Grant writes:

> I need to periodically upload a file to an ftp server, but the
> password they've issued me has a '!' and a '&' character in it.  I
> tried escaping those characters like this:
>
> wput -A file.txt ftp://username:abc\!123\&@ftp.example.com/file.txt
>
> but then it tells me the password isn't correct.  How can I use a
> password like that with wput?

Are you sure the password is correct, does it work with an interactive ftp 
program? I just tried that, and it worked, with exactly the same password 
you used.

	Alex
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] {OT} wput with weird characters
  2007-08-31 19:22 ` Michal 'vorner' Vaner
@ 2007-08-31 21:20   ` Grant
  2007-09-01  1:45     ` Alex Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Grant @ 2007-08-31 21:20 UTC (permalink / raw
  To: gentoo-user

> > I need to periodically upload a file to an ftp server, but the
> > password they've issued me has a '!' and a '&' character in it.  I
> > tried escaping those characters like this:
> >
> > wput -A file.txt ftp://username:abc\!123\&@ftp.example.com/file.txt
>
> Did you try using ' around the whole argument? Like
>
> wput -A ... 'ftp://....txt'?

That did it.  Thanks everyone!

- Grant
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] {OT} wput with weird characters
  2007-08-31 21:20   ` Grant
@ 2007-09-01  1:45     ` Alex Schuster
  2007-09-01 12:08       ` Michal 'vorner' Vaner
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Schuster @ 2007-09-01  1:45 UTC (permalink / raw
  To: gentoo-user

Grant writes:

> > > wput -A file.txt ftp://username:abc\!123\&@ftp.example.com/file.txt
> >
> > Did you try using ' around the whole argument? Like
> >
> > wput -A ... 'ftp://....txt'?
>
> That did it.  Thanks everyone!

Hmm... there really should be no difference whether you put the whole string 
between single quotes or just escape the ! and &. For the application you 
start it is not even possible to see which notation you used.

	Alex
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] {OT} wput with weird characters
  2007-09-01  1:45     ` Alex Schuster
@ 2007-09-01 12:08       ` Michal 'vorner' Vaner
  0 siblings, 0 replies; 7+ messages in thread
From: Michal 'vorner' Vaner @ 2007-09-01 12:08 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 792 bytes --]

Hello

On Sat, Sep 01, 2007 at 03:45:54AM +0200, Alex Schuster wrote:
> Grant writes:
> 
> > > > wput -A file.txt ftp://username:abc\!123\&@ftp.example.com/file.txt
> > >
> > > Did you try using ' around the whole argument? Like
> > >
> > > wput -A ... 'ftp://....txt'?
> >
> > That did it.  Thanks everyone!
> 
> Hmm... there really should be no difference whether you put the whole string 
> between single quotes or just escape the ! and &. For the application you 
> start it is not even possible to see which notation you used.

Sure, but I never know which char I need to escape and which I don't.
This way I do not care - less space to escape it in bad way.

-- 
You can't have everything... where would you put it?
    -- Steven Wright

Michal 'vorner' Vaner

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-09-01 12:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-31 18:50 [gentoo-user] {OT} wput with weird characters Grant
2007-08-31 19:22 ` Michal 'vorner' Vaner
2007-08-31 21:20   ` Grant
2007-09-01  1:45     ` Alex Schuster
2007-09-01 12:08       ` Michal 'vorner' Vaner
2007-08-31 19:45 ` Willie Wong
2007-08-31 20:38 ` Alex Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox